| 251 | } |
| 252 | } |
| 253 | static void cpu_read_write_reg(int read, int write) { |
| 254 | uint8_t value; |
| 255 | int old_prefix = cpu.PREFIX; |
| 256 | cpu.PREFIX = write != 6 ? old_prefix : 0; |
| 257 | value = cpu_read_reg(read); |
| 258 | cpu.PREFIX = read != 6 ? old_prefix : 0; |
| 259 | cpu_write_reg(write, value); |
| 260 | } |
| 261 | |
| 262 | static uint8_t cpu_read_reg_prefetched(int i, uint32_t address) { |
| 263 | uint8_t value; |
no test coverage detected