mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-23 06:28:59 +00:00
Reapply only the status.
This commit is contained in:
parent
06f3c716f5
commit
68b184885f
@ -55,7 +55,11 @@ class RAM68000: public CPU::MC68000Mk2::BusHandler {
|
|||||||
|
|
||||||
void will_perform(uint32_t, uint16_t) {
|
void will_perform(uint32_t, uint16_t) {
|
||||||
if(!has_run_) {
|
if(!has_run_) {
|
||||||
m68000_.set_state(initial_state_);
|
// Patch back in the status result, since reset will
|
||||||
|
// have affected that.
|
||||||
|
auto state = m68000_.get_state();
|
||||||
|
state.registers.status = initial_state_.registers.status;
|
||||||
|
m68000_.set_state(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
--instructions_remaining_;
|
--instructions_remaining_;
|
||||||
|
Loading…
Reference in New Issue
Block a user