diff --git a/MC6809/src/mc6809.cpp b/MC6809/src/mc6809.cpp index de8b8cd..afd6c2c 100644 --- a/MC6809/src/mc6809.cpp +++ b/MC6809/src/mc6809.cpp @@ -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++); } //