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

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