summary refs log tree commit diff
path: root/pc-thing/instructions_new/jz.ts
blob: 0d4f64cf054f57ac978dbdce4e8415b56d1aa161 (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
}