mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 03:32:32 +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;
|
break;
|
||||||
case MicroOp::DecodeOperation:
|
case MicroOp::DecodeOperation:
|
||||||
r_ = (r_ & 0x80) | ((r_ + current_instruction_page_->r_step) & 0x7f);
|
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:
|
case MicroOp::DecodeOperationNoRChange:
|
||||||
scheduled_program_counter_ = current_instruction_page_->instructions[operation_ & halt_mask_];
|
scheduled_program_counter_ = current_instruction_page_->instructions[operation_ & halt_mask_];
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user