Merge pull request #19 from eiowlta/main

allow target field to be used to increment/decrement by 2, 4 or 8 for inc/dec
main
Ry 2023-07-20 16:00:16 -07:00 committed by GitHub
commit 8dd95f2ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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; \