summary refs log tree commit diff
path: root/instructions/jnz.ts
blob: e5b539f8faab1430c69e9ca8d0bc7401d3b1f80f (plain)
1
2
3
4
5
6
7
8
9
import { PC } from "../pc.ts";

export default {
    function(this: PC, [addr]: string[]) {
        if (this.returnFlag == 0) return;
        this.programPointer = +addr - 1
    },
    args: 1
}