1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-05 11:06:28 +00:00
8bitworkshop/src/platform/mw8080bw.ts
2022-09-15 12:03:38 -07:00

29 lines
995 B
TypeScript

import { Midway8080 } from "../machine/mw8080bw";
import { BaseZ80MachinePlatform } from "../common/baseplatform";
import { Platform } from "../common/baseplatform";
import { PLATFORMS } from "../common/emu";
// http://www.computerarcheology.com/Arcade/
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); }
getMemoryMap = function() { return { main:[
{name:'Frame Buffer',start:0x2400,size:7168,type:'ram'},
] } };
showHelp() { return "https://8bitworkshop.com/docs/platforms/arcade/index.html#midway-8080" }
}
PLATFORMS['mw8080bw'] = Midway8080BWPlatform;