summaryrefslogtreecommitdiff
path: root/main.myr
diff options
context:
space:
mode:
Diffstat (limited to 'main.myr')
-rw-r--r--main.myr9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.myr b/main.myr
index fcccb77..0684871 100644
--- a/main.myr
+++ b/main.myr
@@ -178,6 +178,15 @@ const main = {
I = (opcode & 0x0f : uint16)
I <<= 8
I |= (arg : uint16)
+ // JP + V0
+ | 0xb:
+ pc = (opcode & 0x0f : uint16)
+ pc <<= 8
+ pc |= (arg : uint16)
+ pc += (reg[0] : uint16)
+ // RND
+ | 0xc:
+ reg[opcode & 0x0f] = std.rand(0, 256) & arg
| _ : std.die("unimplemented opcode\n")
;;
pc += 2