Skip to content

Commit

Permalink
Merge pull request #22 from OliveIsAWord/main
Browse files Browse the repository at this point in the history
fix ICMP instruction
  • Loading branch information
ry755 committed Jul 19, 2024
2 parents 82cc01a + e8e147e commit b5f2f03
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -924,9 +924,8 @@ static void vm_skipparam(vm_t *vm, uint32_t size, uint8_t prtype, uint8_t offset
VM_PRELUDE_2(_size); \
_type a = _vm_source(vm, instr.source, instr.offset); \
_type b = _vm_source(vm, instr.target, instr.offset); \
_type x; \
vm->flag_carry = CHECKED_SUB(b, a, &x); \
vm->flag_zero = x == 0; \
vm->flag_carry = a > b; \
vm->flag_zero = a == b; \
break; \
}

Expand Down

0 comments on commit b5f2f03

Please sign in to comment.