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