From 9ccba5e624319becd9a85822e60b15b6355f19cd Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Mon, 4 May 2020 12:57:36 -0400 Subject: Made all address decoding, and memory reads/writes be done with a union, in order to make it more readable. --- opcode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opcode.c') 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); -- cgit v1.2.3-13-gbd6f