We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2b6109 commit cfae3acCopy full SHA for cfae3ac
1 file changed
src/opcodes.c
@@ -55,8 +55,8 @@ void adc(byte d) {
55
big += (p & 1); // add with Carry (A was computer just after this)
56
57
if (p & 0b00001000) { // Decimal mode!
58
- high = (old & $F0)+(d & $F0) // compute carry-less LSN
59
- if (((big & 0x0F) > 9)||(high != (big & $F0))) { // LSN overflow? was 'a' instead of 'big'
+ high = (old & 0xF0)+(d & 0xF0); // compute carry-less LSN
+ if (((big & 0x0F) > 9)||(high != (big & 0xF0))) { // LSN overflow? was 'a' instead of 'big'
60
big += 6; // get into next decade
61
}
62
if (((big & 0xF0) > 0x90)||(big & 256)) { // MSN overflow?
0 commit comments