mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
Fixed: my HALT line wasn't actually halting. NOPs followed, but the PC just kept counting.
This commit is contained in:
parent
893f61b490
commit
3df6eba237
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user