summary refs log tree commit diff
path: root/instructions/INX.ts
blob: 9c1cc1b817203c94ef274a8d0912fc1146a95662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import type The65c02 from "../65c02.ts";

export default function (this: The65c02, mode: string) {
    switch (mode) {
        case 'implied':
            this.regX.increment()
            this.negative = this.regX.bit(7);
            this.zero = this.regX.num() == 0;
            this.programCounter.increment();
            break;
    
        default:
            throw 'wha';
    }
}