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