mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
Simplify transaction.
This commit is contained in:
parent
88e33353a1
commit
5f030edea4
@ -39,8 +39,7 @@ class RAM68000: public CPU::MC68000Mk2::BusHandler {
|
|||||||
// Ensure the condition codes start unset and set the initial program counter
|
// Ensure the condition codes start unset and set the initial program counter
|
||||||
// and supervisor stack pointer, as well as starting in supervisor mode.
|
// and supervisor stack pointer, as well as starting in supervisor mode.
|
||||||
auto registers = m68000_.get_state().registers;
|
auto registers = m68000_.get_state().registers;
|
||||||
registers.status &= ~ConditionCode::AllConditions;
|
registers.status = 0x2700;
|
||||||
registers.status |= 0x2700;
|
|
||||||
registers.program_counter = initial_pc();
|
registers.program_counter = initial_pc();
|
||||||
registers.supervisor_stack_pointer = stack_pointer;
|
registers.supervisor_stack_pointer = stack_pointer;
|
||||||
m68000_.decode_from_state(registers);
|
m68000_.decode_from_state(registers);
|
||||||
|
Loading…
Reference in New Issue
Block a user