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

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