diff --git a/js/apple2io.ts b/js/apple2io.ts index 551e8fb..7b2fa0c 100644 --- a/js/apple2io.ts +++ b/js/apple2io.ts @@ -12,6 +12,7 @@ import CPU6502 from './cpu6502'; import { Card, Memory, MemoryPages, TapeData, byte, Restorable } from './types'; import { debug, garbage } from './util'; +import { VideoModes } from './videomodes'; type slot = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7; type button = 0 | 1 | 2; @@ -80,7 +81,7 @@ export default class Apple2IO implements MemoryPages, Restorable private _key = 0; private _keyDown = false; private _button = [false, false, false]; - private _paddle = [0.0, 0.0, 0.0, 0, 0]; + private _paddle = [0.0, 0.0, 0.0, 0.0]; private _phase = -1; private _sample: number[] = []; private _sampleIdx = 0; @@ -100,7 +101,7 @@ export default class Apple2IO implements MemoryPages, Restorable private _tapeNext: number = 0; private _tapeCurrent = false; - constructor(private readonly cpu: CPU6502, private readonly vm: any) { + constructor(private readonly cpu: CPU6502, private readonly vm: VideoModes) { this.init(); } diff --git a/js/videomodes.ts b/js/videomodes.ts index b6ef292..79a5b50 100644 --- a/js/videomodes.ts +++ b/js/videomodes.ts @@ -58,6 +58,9 @@ export interface VideoModes extends Restorable { altchar(on: boolean): void doubleHires(on: boolean): void enhanced(on: boolean): void + hires(on: boolean): void + mixed(on: boolean): void + text(on: boolean): void is80Col(): boolean isAltChar(): boolean