diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2019-12-03 11:03:11 -0500 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2019-12-03 11:03:11 -0500 |
commit | 5962c60342b9ed6562d7fb0f71a50ca9700b3735 (patch) | |
tree | d784fa88b47bce5359cdcd497ef6bd45cb6e3461 /opcode.c | |
parent | 245940209d5b8458f5d998783f7992573e2951bf (diff) |
Start optimizing the emulator.
Diffstat (limited to 'opcode.c')
-rw-r--r-- | opcode.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -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]--; } |