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

export default {
    function(this: PC, [reg, by]: number[]) {
        const r = this.lib.parseReg(reg);
        this.registers[r] -= by
    },
    args: 2
}