diff options
| -rw-r--r-- | main.myr | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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") ;; ;; |