ADC
[ScratchNES.git] / src / CPU / instructions / ADC
1 R
2 set tmp to (join "0x" (A)) + (join "0x" (M)) + flagC
3 set A to item (tmp mod 256) of hex
4 set flagZ to <A = 0>
5 set flagC to <tmp > 255>
6 set flagN to <join "0x" (letter 1 of A) > 7 >
7 set flagV to <tmp > 127 or tmp < -128>
This page took 0.064787 seconds and 4 git commands to generate.