summary refs log tree commit diff
path: root/pc-thing/instructions/shr.ts
blob: 15e93450df173612d6574668b9c9a97d4f34c2e3 (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
}