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

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