summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.myr10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.myr b/main.myr
index d7fc392..fcccb77 100644
--- a/main.myr
+++ b/main.myr
@@ -168,6 +168,16 @@ const main = {
reg[opcode & 0x0f] <<= 1
| _: std.die("unimplemented opcode\n")
;;
+ // SNE
+ | 0x9:
+ if reg[opcode & 0x0f] != reg[(arg & 0xf0) >> 4]
+ pc += 2
+ ;;
+ // LD (I)
+ | 0xa:
+ I = (opcode & 0x0f : uint16)
+ I <<= 8
+ I |= (arg : uint16)
| _ : std.die("unimplemented opcode\n")
;;
pc += 2