Commit Diff
--- src/cpu.c +++ src/cpu.c @@ -24,7 +24,7 @@ u64 cpu_get (size_t reg) u32 cpu_fetch (void) { - const u32 i = *(const u32 *)(size_t)pc; + const u32 i = read_u32 (pc); next_pc = pc + 4; return i; }
--- src/cpu.c +++ src/cpu.c @@ -24,7 +24,7 @@ u64 cpu_get (size_t reg) u32 cpu_fetch (void) { - const u32 i = *(const u32 *)(size_t)pc; + const u32 i = read_u32 (pc); next_pc = pc + 4; return i; }