projects
/
ScratchNES.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27979e3
)
Switch to automatic flag handling for accumulator ops
author
Alyssa Rosenzweig
<alyssa@backtick.town>
Thu, 23 Jun 2016 01:08:48 +0000 (18:08 -0700)
committer
Alyssa Rosenzweig
<alyssa@backtick.town>
Thu, 23 Jun 2016 01:08:48 +0000 (18:08 -0700)
src/CPU/instructions/ADC
patch
|
blob
|
history
diff --git
a/src/CPU/instructions/ADC
b/src/CPU/instructions/ADC
index
2e8410d
..
e546d36
100644
(file)
--- a/
src/CPU/instructions/ADC
+++ b/
src/CPU/instructions/ADC
@@
-1,7
+1,5
@@
-R
+R
,N,Z
set tmp to (join "0x" (A)) + (join "0x" (M)) + flagC
set A to item (tmp mod 256) of hex
-set flagZ to <A = 0>
set flagC to <tmp > 255>
-set flagN to <join "0x" (letter 1 of A) > 7 >
set flagV to <tmp > 127 or tmp < -128>
This page took
0.023063 seconds
and
4
git commands to generate.