MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / cpu_write_word

Function cpu_write_word

core/cpu.c:120–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 return value;
119}
120static 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
128static uint8_t cpu_pop_byte_mode(bool mode) {
129 return mem_read_cpu(cpu_address_mode(cpu.registers.stack[mode].hl++, mode), false);

Callers 1

cpu_executeFunction · 0.85

Calls 1

cpu_write_byteFunction · 0.85

Tested by

no test coverage detected