summaryrefslogtreecommitdiff
path: root/main.myr
diff options
context:
space:
mode:
Diffstat (limited to 'main.myr')
-rw-r--r--main.myr8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.myr b/main.myr
index f79b3d6..0fd856c 100644
--- a/main.myr
+++ b/main.myr
@@ -105,6 +105,14 @@ const main = {
if reg[opcode & 0x0f] != arg
pc += 2
;;
+ // SE
+ | 0x5:
+ if reg[opcode & 0x0f] == reg[(arg & 0xf0) >> 4]
+ pc += 2
+ ;;
+ // LD
+ | 0x6:
+ reg[opcode & 0x0f] = arg
| _ : std.die("unimplemented opcode\n")
;;
;;