summary refs log tree commit diff
path: root/pc-thing/instructions/ld.ts
blob: 977f343335a83496835f3bfd3453ba285c698725 (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.registers[r] = this.getMem(Number(addr))
    },
    args: 2
}