comment
This commit is contained in:
parent
1ef5211bc1
commit
41989863e2
2 changed files with 5 additions and 7 deletions
5
cpu.cpp
5
cpu.cpp
|
@ -1282,10 +1282,9 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
||||||
else {
|
else {
|
||||||
int run_mode = getPSW_prev_runmode();
|
int run_mode = getPSW_prev_runmode();
|
||||||
auto phys = b->calculate_physical_address(run_mode, a.addr.value());
|
auto phys = b->calculate_physical_address(run_mode, a.addr.value());
|
||||||
|
|
||||||
uint32_t a = word_mode == wm_byte ? phys.physical_data : phys.physical_instruction;
|
uint32_t a = word_mode == wm_byte ? phys.physical_data : phys.physical_instruction;
|
||||||
|
|
||||||
b->check_odd_addressing(a, run_mode, word_mode ? d_space : i_space, false);
|
b->check_odd_addressing(a, run_mode, word_mode ? d_space : i_space, false); // TODO d/i space must depend on the check done in calculate_physical_address
|
||||||
|
|
||||||
v = b->readPhysical(word_mode == wm_byte ? phys.physical_data : phys.physical_instruction);
|
v = b->readPhysical(word_mode == wm_byte ? phys.physical_data : phys.physical_instruction);
|
||||||
}
|
}
|
||||||
|
@ -1327,7 +1326,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
||||||
mtpi_count++;
|
mtpi_count++;
|
||||||
|
|
||||||
uint32_t a = word_mode == wm_byte ? phys.physical_data : phys.physical_instruction;
|
uint32_t a = word_mode == wm_byte ? phys.physical_data : phys.physical_instruction;
|
||||||
b->check_odd_addressing(a, run_mode, word_mode == wm_byte ? d_space : i_space, true);
|
b->check_odd_addressing(a, run_mode, word_mode == wm_byte ? d_space : i_space, true); // TODO d/i space must depend on the check done in calculate_physical_address
|
||||||
b->writePhysical(a, v);
|
b->writePhysical(a, v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1
rk05.cpp
1
rk05.cpp
|
@ -122,7 +122,6 @@ void rk05::writeWord(const uint16_t addr, uint16_t v)
|
||||||
|
|
||||||
if (func == 0) { // controller reset
|
if (func == 0) { // controller reset
|
||||||
DOLOG(debug, true, "RK05 invoke %d (controller reset)", func);
|
DOLOG(debug, true, "RK05 invoke %d (controller reset)", func);
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (func == 1) { // write
|
else if (func == 1) { // write
|
||||||
*disk_write_acitivity = true;
|
*disk_write_acitivity = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue