| 199 | cpu.registers.index[cpu.PREFIX].hl = value; |
| 200 | } |
| 201 | static void cpu_write_index_partial_mode(uint32_t value) { |
| 202 | value = cpu_mask_mode(value, cpu.L); |
| 203 | if (cpu.L) { |
| 204 | cpu.registers.index[cpu.PREFIX].hl = value; |
| 205 | } else { |
| 206 | cpu.registers.index[cpu.PREFIX].hls = value; |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | static uint32_t cpu_read_other_index(void) { |
| 211 | return cpu.registers.index[cpu.PREFIX ^ 1].hl; |