1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-16 18:30:32 +00:00

r_step is obsolete now that I know that [DD/FD]CB don't have a refresh cycle.

This commit is contained in:
Thomas Harte 2021-04-13 22:17:30 -04:00
parent deb5d69ac7
commit 7017324d60
3 changed files with 1 additions and 5 deletions

View File

@ -94,7 +94,7 @@ template < class T,
break;
case MicroOp::IncrementR:
refresh_addr_ = ir_;
ir_.halves.low = (ir_.halves.low & 0x80) | ((ir_.halves.low + current_instruction_page_->r_step) & 0x7f);
ir_.halves.low = (ir_.halves.low & 0x80) | ((ir_.halves.low + 1) & 0x7f);
break;
case MicroOp::DecodeOperation:
pc_.full += pc_increment_ & uint16_t(halt_mask_);

View File

@ -153,11 +153,8 @@ void ProcessorStorage::install_default_instruction_set() {
assemble_base_page(fd_page_, iy_, true, fdcb_page_);
assemble_ed_page(ed_page_);
fdcb_page_.r_step = 0;
fd_page_.is_indexed = true;
fdcb_page_.is_indexed = true;
ddcb_page_.r_step = 0;
dd_page_.is_indexed = true;
ddcb_page_.is_indexed = true;

View File

@ -121,7 +121,6 @@ class ProcessorStorage {
std::vector<MicroOp> all_operations;
std::vector<MicroOp> fetch_decode_execute;
MicroOp *fetch_decode_execute_data = nullptr;
uint8_t r_step = 1;
bool is_indexed = false;
};