diff --git a/InstructionSets/x86/Implementation/Stack.hpp b/InstructionSets/x86/Implementation/Stack.hpp index e70e5c8cd..1ca806d21 100644 --- a/InstructionSets/x86/Implementation/Stack.hpp +++ b/InstructionSets/x86/Implementation/Stack.hpp @@ -130,7 +130,7 @@ void pusha( push(initial_sp, context); push(context.registers.ebp(), context); push(context.registers.esi(), context); - push(context.registers.esi(), context); + push(context.registers.edi(), context); } else { push(context.registers.ax(), context); push(context.registers.cx(), context); @@ -139,7 +139,7 @@ void pusha( push(initial_sp, context); push(context.registers.bp(), context); push(context.registers.si(), context); - push(context.registers.si(), context); + push(context.registers.di(), context); } }