mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-05 10:28:58 +00:00
PHP pushes with the BRK flag set in emulation mode.
This commit is contained in:
parent
19aea85184
commit
f83ee97439
@ -383,9 +383,13 @@ template <typename BusHandler> void Processor<BusHandler>::run_for(const Cycles
|
|||||||
|
|
||||||
case PHP:
|
case PHP:
|
||||||
data_buffer_.value = flags_.get();
|
data_buffer_.value = flags_.get();
|
||||||
|
data_buffer_.size = 1;
|
||||||
|
|
||||||
if(!emulation_flag_) {
|
if(!emulation_flag_) {
|
||||||
assert(false); // TODO: M and X.
|
assert(false); // TODO: M and X.
|
||||||
|
} else {
|
||||||
|
// On the 6502, the break flag is set during a PHP.
|
||||||
|
data_buffer_.value |= Flag::Break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user