summaryrefslogtreecommitdiff
path: root/main.myr
diff options
context:
space:
mode:
Diffstat (limited to 'main.myr')
-rw-r--r--main.myr10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.myr b/main.myr
index 68aef16..f79b3d6 100644
--- a/main.myr
+++ b/main.myr
@@ -95,6 +95,16 @@ const main = {
;;
stk[sp] = pc
pc = ((opcode & 0x0f) << 8) | arg
+ // SE
+ | 0x3:
+ if reg[opcode & 0x0f] == arg
+ pc += 2
+ ;;
+ // SNE
+ | 0x4:
+ if reg[opcode & 0x0f] != arg
+ pc += 2
+ ;;
| _ : std.die("unimplemented opcode\n")
;;
;;