diff options
author | Benedikt Böhm <bb@xnull.de> | 2009-05-19 12:12:45 +0200 |
---|---|---|
committer | Benedikt Böhm <bb@xnull.de> | 2009-05-19 12:12:45 +0200 |
commit | 0ccccfe4939cceec05ac6f954ffd491607e3c1bb (patch) | |
tree | 30cfb8c90a86934fdf7c34b10fc24171d62bf1d3 /src | |
parent | 49f510d2d60129526832bfcd9c0f4049962bc80e (diff) | |
download | swppy-0ccccfe4939cceec05ac6f954ffd491607e3c1bb.tar.gz swppy-0ccccfe4939cceec05ac6f954ffd491607e3c1bb.tar.xz swppy-0ccccfe4939cceec05ac6f954ffd491607e3c1bb.zip |
fix CMP instruction
Diffstat (limited to 'src')
-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) |