1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-02 20:30:00 +00:00

PHP pushes with the BRK flag set in emulation mode.

This commit is contained in:
Thomas Harte 2020-10-07 21:37:50 -04:00
parent 19aea85184
commit f83ee97439

View File

@ -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;