| 118 | return value; |
| 119 | } |
| 120 | static void cpu_write_word(uint32_t address, uint32_t value) { |
| 121 | cpu_write_byte(address, value); |
| 122 | cpu_write_byte(address + 1, value >> 8); |
| 123 | if (cpu.L) { |
| 124 | cpu_write_byte(address + 2, value >> 16); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | static uint8_t cpu_pop_byte_mode(bool mode) { |
| 129 | return mem_read_cpu(cpu_address_mode(cpu.registers.stack[mode].hl++, mode), false); |
no test coverage detected