summaryrefslogtreecommitdiff
path: root/opcode.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2019-12-03 11:03:11 -0500
committermrb0nk500 <b0nk@b0nk.xyz>2019-12-03 11:03:11 -0500
commit5962c60342b9ed6562d7fb0f71a50ca9700b3735 (patch)
treed784fa88b47bce5359cdcd497ef6bd45cb6e3461 /opcode.c
parent245940209d5b8458f5d998783f7992573e2951bf (diff)
Start optimizing the emulator.
Diffstat (limited to 'opcode.c')
-rw-r--r--opcode.c14
1 files changed, 0 insertions, 14 deletions
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]--;
}