OSDN Git Service
(root)
/
motonesemu
/
motonesemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcc7a4e
)
cmp bug fix.
author
astoria-d
<astoria-d@mail.goo.ne.jp>
Sat, 23 Mar 2013 12:29:05 +0000
(21:29 +0900)
committer
astoria-d
<astoria-d@mail.goo.ne.jp>
Sat, 23 Mar 2013 12:29:05 +0000
(21:29 +0900)
emulator/6502core.c
patch
|
blob
|
history
diff --git
a/emulator/6502core.c
b/emulator/6502core.c
index
4a3eb1e
..
521a703
100644
(file)
--- a/
emulator/6502core.c
+++ b/
emulator/6502core.c
@@
-832,7
+832,7
@@
static void set_negative(unsigned char data) {
}
static void set_CMP_carry(unsigned char data, unsigned char cmp) {
- if (data
- cmp >= 0
)
+ if (data
>= cmp
)
cpu_reg.status.carry = 1;
else
cpu_reg.status.carry = 0;