From 5962c60342b9ed6562d7fb0f71a50ca9700b3735 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Tue, 3 Dec 2019 11:03:11 -0500 Subject: Start optimizing the emulator. --- opcode.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'opcode.c') diff --git a/opcode.c b/opcode.c index e4bd510..036a4fb 100644 --- a/opcode.c +++ b/opcode.c @@ -230,24 +230,10 @@ void lsr(struct sux *cpu, uint64_t adr, uint8_t thread) { setps(cpu, thread); } -void inc(struct sux *cpu, uint64_t *reg, uint8_t thread) { - *reg += 1; - cpu->z[thread] = (*reg == 0); - cpu->n[thread] = (*reg >> 63); - setps(cpu, thread); -} - void inc_addr(struct sux *cpu, uint64_t adr, uint8_t thread) { addr[adr]++; } -void dec(struct sux *cpu, uint64_t *reg, uint8_t thread) { - *reg -= 1; - cpu->z[thread] = (*reg == 0); - cpu->n[thread] = (*reg >> 63); - setps(cpu, thread); -} - void dec_addr(struct sux *cpu, uint64_t adr, uint8_t thread) { addr[adr]--; } -- cgit v1.2.3-13-gbd6f