summary refs log tree commit diff
path: root/pc-thing/instructions/shl.ts
blob: 68345bb9cdfeef1b719285fd44377bee636053a1 (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] = this.registers[r] << by
    },
    args: 2
}