mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-01-23 04:16:02 +00:00
Whoops: correct 6809 stack pointer increment/decrement order
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -579,11 +579,11 @@ void EightBit::mc6809::execute11(const uint8_t opcode) {
|
||||
//
|
||||
|
||||
void EightBit::mc6809::push(register16_t& stack, const uint8_t value) {
|
||||
BUS().write(stack--, value);
|
||||
BUS().write(--stack, value);
|
||||
}
|
||||
|
||||
uint8_t EightBit::mc6809::pop(register16_t& stack) {
|
||||
return BUS().read(++stack);
|
||||
return BUS().read(stack++);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user