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