mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-11 08:30:55 +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:
|
||||
data_buffer_.value = flags_.get();
|
||||
data_buffer_.size = 1;
|
||||
|
||||
if(!emulation_flag_) {
|
||||
assert(false); // TODO: M and X.
|
||||
} else {
|
||||
// On the 6502, the break flag is set during a PHP.
|
||||
data_buffer_.value |= Flag::Break;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user