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

export default {
    function(this: PC, [reg, data]: number[]) {
        const r = this.lib.parseReg(reg)
        this.registers[r] = Number(data) ?? 0
    },
    args: 2
}