Use absolute addressing for RET calls
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8793c64f1c
commit
5ce8cfb3d8
|
@ -83,7 +83,7 @@ namespace Instruction {
|
|||
|
||||
Ret::Ret(uint32_t count) {
|
||||
instructions.push_back(std::make_unique<Stack::PopImm>(count + 1));
|
||||
instructions.push_back(std::make_unique<Return>(AddressWithOffset{count, Stack::stackOffsetRegister}));
|
||||
instructions.push_back(std::make_unique<Return>(AddressWithOffset{Stack::stackOffsetRegisterAddress, 0}));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue