mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-13 00:25:26 +00:00
PHP pushes with the BRK flag set in emulation mode.
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user