diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2020-05-04 12:57:36 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2020-05-04 12:57:36 -0400 |
commit | 9ccba5e624319becd9a85822e60b15b6355f19cd (patch) | |
tree | c12efdd4d15986e04edac36439668fa4843c89b7 /opcode.c | |
parent | 1c622005c289ef1cd9feea277bd0ff46b19d15f0 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |