Switch to automatic flag handling for accumulator ops
[ScratchNES.git] / src / CPU / instructions / ADC
1 R,N,Z
2 set tmp to (join "0x" (A)) + (join "0x" (M)) + flagC
3 set A to item (tmp mod 256) of hex
4 set flagC to <tmp > 255>
5 set flagV to <tmp > 127 or tmp < -128>
This page took 0.061553 seconds and 4 git commands to generate.