summaryrefslogtreecommitdiff
path: root/sux.c
diff options
context:
space:
mode:
Diffstat (limited to 'sux.c')
-rw-r--r--sux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sux.c b/sux.c
index daabdc2..acd834e 100644
--- a/sux.c
+++ b/sux.c
@@ -286,7 +286,7 @@ void *run(void *args) {
case SBC_IMM: /* SBC Immediate. */
case SBC_AB: /* SBC Absolute. */
case SBC_Z: /* SBC Zero Matrix. */
- cpu->a = sbc(cpu, cpu->a, value.u64, thread);
+ cpu->a = adc(cpu, cpu->a, ~value.u64, thread);
break;
case PLP_IMP: cpu->ps.u8[thread] = pull(cpu, 0, thread); break; /* PuLl Processor status from stack. */
case PLA_IMP: cpu->a = pull(cpu, size, thread); break; /* PuLl Accumulator from stack. */