diff options
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]--; } |