mirror of
https://github.com/TomHarte/CLK.git
synced 2025-04-21 18:37:11 +00:00
Correct final thing written to stack by PUSHA.
This commit is contained in:
parent
3dcba9362c
commit
8d956da65b
@ -130,7 +130,7 @@ void pusha(
|
||||
push<uint32_t, true>(initial_sp, context);
|
||||
push<uint32_t, true>(context.registers.ebp(), context);
|
||||
push<uint32_t, true>(context.registers.esi(), context);
|
||||
push<uint32_t, true>(context.registers.esi(), context);
|
||||
push<uint32_t, true>(context.registers.edi(), context);
|
||||
} else {
|
||||
push<uint16_t, true>(context.registers.ax(), context);
|
||||
push<uint16_t, true>(context.registers.cx(), context);
|
||||
@ -139,7 +139,7 @@ void pusha(
|
||||
push<uint16_t, true>(initial_sp, context);
|
||||
push<uint16_t, true>(context.registers.bp(), context);
|
||||
push<uint16_t, true>(context.registers.si(), context);
|
||||
push<uint16_t, true>(context.registers.si(), context);
|
||||
push<uint16_t, true>(context.registers.di(), context);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user