1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 23:52:26 +00:00

Attempted to ensure appropriate resumption of processing after quick-reading a tape byte.

This commit is contained in:
Thomas Harte 2017-06-11 17:28:47 -04:00
parent ba5f34f827
commit e5b30cdfbb

View File

@ -82,7 +82,7 @@ int Machine::perform_machine_cycle(const CPU::Z80::MachineCycle &cycle) {
uint16_t hl = get_value_of_register(CPU::Z80::Register::HL); uint16_t hl = get_value_of_register(CPU::Z80::Register::HL);
ram_[hl & 1023] = (uint8_t)next_byte; ram_[hl & 1023] = (uint8_t)next_byte;
*cycle.value = 0x00; *cycle.value = 0x00;
set_value_of_register(CPU::Z80::Register::ProgramCounter, tape_return_address_); set_value_of_register(CPU::Z80::Register::ProgramCounter, tape_return_address_ - 1);
return 0; return 0;
} }
} }