Skip to content

Commit

Permalink
Merge pull request #19 from eiowlta/main
Browse files Browse the repository at this point in the history
allow target field to be used to increment/decrement by 2, 4 or 8 for inc/dec
  • Loading branch information
ry755 committed Jul 20, 2023
2 parents 4bedaa9 + e734528 commit 8dd95f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ static void vm_skipparam(vm_t *vm, uint32_t size, uint8_t prtype) {
VM_PRELUDE_1(_size); \
_type v = _vm_source_stay(vm, instr.source); \
_type x; \
bool carry = _oper(v, 1, &x); \
bool carry = _oper(v, 1 << instr.target, &x); \
_vm_target(vm, instr.source, x); \
vm->flag_carry = carry; \
vm->flag_zero = x == 0; \
Expand Down

0 comments on commit 8dd95f2

Please sign in to comment.