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

Function cpu_read_word

core/cpu.c:112–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112static uint32_t cpu_read_word(uint32_t address) {
113 uint32_t value = cpu_read_byte(address);
114 value |= cpu_read_byte(address + 1) << 8;
115 if (cpu.L) {
116 value |= cpu_read_byte(address + 2) << 16;
117 }
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);

Callers 1

cpu_executeFunction · 0.85

Calls 1

cpu_read_byteFunction · 0.85

Tested by

no test coverage detected