diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-05-12 17:34:18 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-05-12 17:34:18 +0100 |
commit | af16b77a3667b6dd4ffd645f27a29c57a1db88cc (patch) | |
tree | 1cfa56090f6b5c8e373f8e5c803dd6f11c902e4a | |
parent | d6053f73792e85fbc71d5695ee13253d0bd56178 (diff) | |
download | tr8vm-af16b77a3667b6dd4ffd645f27a29c57a1db88cc.tar.gz tr8vm-af16b77a3667b6dd4ffd645f27a29c57a1db88cc.zip |
Fix which opcodes have double lenght
-rw-r--r-- | vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -149,7 +149,7 @@ uint8_t tr8_eval(Tr8 *vm) vm->f &= ~BF; /* JMP imm and CALL imm are double length */ - if (instr == 0x9320 || instr == 0x9220) + if (instr == 0x9220 || instr == 0x9200) vm->pc += 2; continue; |