summary refs log tree commit diff
path: root/instructions/INX.ts
blob: 9a947e1559f53554838db95ce6a79acb471b4022 (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 'implicit':
            this.regX.increment()
            this.negative = this.regX.bit(7);
            this.zero = this.regX.num() == 0;
            this.programCounter.increment();
            break;
    
        default:
            throw 'wha';
    }
}