2019-08-06 03:47:23 +00:00
|
|
|
"use strict";
|
|
|
|
|
2019-08-23 19:05:12 +00:00
|
|
|
import { MOS6502 } from "../cpu/MOS6502";
|
|
|
|
import { Atari7800 } from "../machine/atari7800";
|
|
|
|
import { Platform, Base6502MachinePlatform } from "../baseplatform";
|
|
|
|
import { PLATFORMS } from "../emu";
|
2019-08-11 14:23:56 +00:00
|
|
|
|
2019-08-06 03:47:23 +00:00
|
|
|
var Atari7800_PRESETS = [
|
|
|
|
{id:'sprites.dasm', name:'Sprites (ASM)'},
|
|
|
|
];
|
|
|
|
|
2019-08-23 19:05:12 +00:00
|
|
|
class Atari7800Platform extends Base6502MachinePlatform<Atari7800> implements Platform {
|
2019-08-06 03:47:23 +00:00
|
|
|
|
2019-08-23 19:05:12 +00:00
|
|
|
newMachine() { return new Atari7800(); }
|
|
|
|
getPresets() { return Atari7800_PRESETS; }
|
|
|
|
getDefaultExtension() { return ".c"; };
|
|
|
|
readAddress(a) { return this.machine.readConst(a); }
|
|
|
|
// TODO loadBios(bios) { this.machine.loadBIOS(a); }
|
2019-08-06 03:47:23 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
PLATFORMS['atari7800'] = Atari7800Platform;
|