summaryrefslogtreecommitdiff
path: root/opcode.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-05-04 12:57:36 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-05-04 12:57:36 -0400
commit9ccba5e624319becd9a85822e60b15b6355f19cd (patch)
treec12efdd4d15986e04edac36439668fa4843c89b7 /opcode.c
parent1c622005c289ef1cd9feea277bd0ff46b19d15f0 (diff)
Made all address decoding, and memory reads/writes be
done with a union, in order to make it more readable.
Diffstat (limited to 'opcode.c')
-rw-r--r--opcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcode.c b/opcode.c
index 423da28..017a298 100644
--- a/opcode.c
+++ b/opcode.c
@@ -17,8 +17,8 @@ extern inline void ror(struct sux *cpu, uint64_t value, uint8_t thread);
extern inline void mul(struct sux *cpu, uint64_t value, uint8_t thread);
extern inline void divd(struct sux *cpu, uint64_t value, uint8_t opcode, uint8_t thread);
extern inline void cmp(struct sux *cpu, uint64_t value, uint8_t opcode, uint8_t thread);
-extern inline void incr(struct sux *cpu, uint64_t value, uint8_t opcode, uint8_t thread);
-extern inline void decr(struct sux *cpu, uint64_t value, uint8_t opcode, uint8_t thread);
+extern inline void incr(struct sux *cpu, uint8_t opcode, uint8_t thread);
+extern inline void decr(struct sux *cpu, uint8_t opcode, uint8_t thread);
extern inline void incm(struct sux *cpu, uint64_t address, uint8_t thread);
extern inline void decm(struct sux *cpu, uint64_t address, uint8_t thread);
extern inline void load(struct sux *cpu, uint64_t address, uint8_t *esc, uint8_t opcode, uint8_t prefix, uint8_t thread);