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

export default {
    function(this: PC, [reg1]: number[]) {
        if (this.returnFlag == 0) return;
        const r1 = this.lib.parseReg(reg1);
        this.programPointer = this.registers[r1]
    },
    args: 1
}