1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-09 06:29:33 +00:00

Fixed: my HALT line wasn't actually halting. NOPs followed, but the PC just kept counting.

This commit is contained in:
Thomas Harte 2017-06-05 10:35:03 -04:00
parent 893f61b490
commit 3df6eba237

View File

@ -803,7 +803,7 @@ template <class T> class Processor {
break;
case MicroOp::DecodeOperation:
r_ = (r_ & 0x80) | ((r_ + current_instruction_page_->r_step) & 0x7f);
pc_.full += pc_increment_;
pc_.full += pc_increment_ & (uint16_t)halt_mask_;
case MicroOp::DecodeOperationNoRChange:
scheduled_program_counter_ = current_instruction_page_->instructions[operation_ & halt_mask_];
break;