diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2020-10-05 08:47:08 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2020-10-05 08:47:08 -0400 |
commit | 96ae48f8a79f33cff0a89fac211b6862866e1a44 (patch) | |
tree | 885ba3a75da7b3f711cabce8c7590e8430104075 /sux.h | |
parent | ca8e2f93acc794b00464c5513956bd84de258913 (diff) |
- Added a routine for testing the SuB Suite's
implementation of free(), although it's commented
out.
- Removed the sbc() function from the emulator, since
sbc can be done by just inverting the second operand
of adc.
Diffstat (limited to 'sux.h')
-rw-r--r-- | sux.h | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -277,14 +277,6 @@ static inline uint64_t adc(struct sux *cpu, uint64_t reg, uint64_t value, uint8_ setflag((sum < value), C); return sum; } -static inline uint64_t sbc(struct sux *cpu, uint64_t reg, uint64_t value, uint8_t thread) { - uint64_t sum = reg-value-!getflag(C); - setflag(sum == 0, Z); - setflag(sum >> 63, N); - setflag(((reg^value) >> 63) && ((reg^sum) >> 63), V); - setflag((sum < value), C); - return sum; -} static inline uint64_t transfer(struct sux *cpu, uint64_t src, uint64_t value, uint8_t opcode, uint8_t prefix, uint8_t thread) { switch (opcode) { |