aboutsummaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-05-12 17:34:18 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-05-12 17:34:18 +0100
commitaf16b77a3667b6dd4ffd645f27a29c57a1db88cc (patch)
tree1cfa56090f6b5c8e373f8e5c803dd6f11c902e4a /vm.c
parentd6053f73792e85fbc71d5695ee13253d0bd56178 (diff)
downloadtr8vm-af16b77a3667b6dd4ffd645f27a29c57a1db88cc.tar.gz
tr8vm-af16b77a3667b6dd4ffd645f27a29c57a1db88cc.zip
Fix which opcodes have double lenght
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index aa21275..98f33ef 100644
--- a/vm.c
+++ b/vm.c
@@ -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;