diff --git a/OSBindings/Mac/Clock SignalTests/68000Tests.mm b/OSBindings/Mac/Clock SignalTests/68000Tests.mm index 8cebc0385..b1289b5aa 100644 --- a/OSBindings/Mac/Clock SignalTests/68000Tests.mm +++ b/OSBindings/Mac/Clock SignalTests/68000Tests.mm @@ -189,6 +189,9 @@ // PC. XCTAssertEqual(stack_frame[5], 0x0000); XCTAssertEqual(stack_frame[6], 0x1004); + + // Check that A7 ended up in the proper location. + XCTAssertEqual(_machine->get_processor_state().registers.stack_pointer(), 0x1f8); } - (void)testShiftDuration { diff --git a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp index 89705e168..cafdee677 100644 --- a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp +++ b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp @@ -461,8 +461,13 @@ void Processor