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

export default {
    function(this: PC, [reg, addr]: number[]) {
        this.registers[this.lib.parseReg(reg)] = this.getMem(this.getMem(Number(addr)))
    },
    args: 2
}