1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-17 11:05:58 +00:00
8bitworkshop/src/platform/mw8080bw.ts

27 lines
775 B
TypeScript
Raw Normal View History

"use strict";
import { Midway8080 } from "../machine/mw8080bw";
import { BaseZ80MachinePlatform } from "../baseplatform";
import { Platform } from "../baseplatform";
import { PLATFORMS } from "../emu";
2017-01-21 13:13:36 +00:00
// http://www.computerarcheology.com/Arcade/
2018-08-23 12:49:14 +00:00
const MW8080BW_PRESETS = [
{ id: 'gfxtest.c', name: 'Graphics Test' },
{ id: 'shifter.c', name: 'Sprite w/ Bit Shifter' },
{ id: 'game2.c', name: 'Cosmic Impalas' },
];
class Midway8080BWPlatform extends BaseZ80MachinePlatform<Midway8080> implements Platform {
newMachine() { return new Midway8080(); }
getPresets() { return MW8080BW_PRESETS; }
getDefaultExtension() { return ".c"; };
readAddress(a) { return this.machine.read(a); }
}
PLATFORMS['mw8080bw'] = Midway8080BWPlatform;