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