1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-27 16:31:31 +00:00

Simplify transaction.

This commit is contained in:
Thomas Harte 2022-05-26 19:37:30 -04:00
parent 88e33353a1
commit 5f030edea4

View File

@ -39,8 +39,7 @@ class RAM68000: public CPU::MC68000Mk2::BusHandler {
// Ensure the condition codes start unset and set the initial program counter
// and supervisor stack pointer, as well as starting in supervisor mode.
auto registers = m68000_.get_state().registers;
registers.status &= ~ConditionCode::AllConditions;
registers.status |= 0x2700;
registers.status = 0x2700;
registers.program_counter = initial_pc();
registers.supervisor_stack_pointer = stack_pointer;
m68000_.decode_from_state(registers);