diff --git a/InstructionSets/x86/Implementation/PerformImplementation.hpp b/InstructionSets/x86/Implementation/PerformImplementation.hpp index e8b0234aa..0971685c4 100644 --- a/InstructionSets/x86/Implementation/PerformImplementation.hpp +++ b/InstructionSets/x86/Implementation/PerformImplementation.hpp @@ -191,18 +191,18 @@ namespace Primitive { // The below takes a reference in order properly to handle PUSH SP, // which should place the value of SP after the push onto the stack. -template +template void push(IntT &value, ContextT &context) { context.registers.sp_ -= sizeof(IntT); - context.memory.template access( + context.memory.template access( Source::SS, context.registers.sp_) = value; context.memory.template write_back(); } -template +template IntT pop(ContextT &context) { - const auto value = context.memory.template access( + const auto value = context.memory.template access( Source::SS, context.registers.sp_); context.registers.sp_ += sizeof(IntT);