From 96ae48f8a79f33cff0a89fac211b6862866e1a44 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Mon, 5 Oct 2020 08:47:08 -0400 Subject: - Added a routine for testing the SuB Suite's implementation of free(), although it's commented out. - Removed the sbc() function from the emulator, since sbc can be done by just inverting the second operand of adc. --- sux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sux.c') 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. */ -- cgit v1.2.3-13-gbd6f