diff options
| author | Jakob L. Kreuze <zerodaysfordays@sdf.lonestar.org> | 2020-01-01 13:30:36 -0500 |
|---|---|---|
| committer | Jakob L. Kreuze <zerodaysfordays@sdf.lonestar.org> | 2020-01-01 13:30:36 -0500 |
| commit | 1a8eb561f724f3189fd782bb07d30760c03cbd3e (patch) | |
| tree | 1e756f94f0e3dbfa1bbbf27e5f60287457573003 | |
| parent | 615cc2b7cf222deed55764bcd41a80c725d837af (diff) | |
Implement SE and SNE
| -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") ;; ;; |