diff --git a/Processors/Z80/Z80.hpp b/Processors/Z80/Z80.hpp index 3cb8db6cf..53cff7f37 100644 --- a/Processors/Z80/Z80.hpp +++ b/Processors/Z80/Z80.hpp @@ -803,7 +803,7 @@ template 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;