diff options
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/cpu.c b/src/emu/cpu.c index b0664cd..5256cb6 100644 --- a/src/emu/cpu.c +++ b/src/emu/cpu.c @@ -195,8 +195,8 @@ void execute(uint32_t IR) memcpy(&MEM[GPR[a] + c], &tmp32, sizeof(uint32_t)); break; case OPC_CMP: - Z = (GPR[b] == (uint32_t) c); - N = (GPR[b] < (uint32_t) c); + Z = (GPR[a] == GPR[b]); + N = (GPR[a] < GPR[b]); break; case OPC_BEQ: if (Z) |