2018-06-20 08:06:18 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var Atari8_PRESETS = [
|
|
|
|
{id:'hello.a', name:'Hello World (ASM)'},
|
|
|
|
{id:'hellopm.a', name:'Hello Sprites (ASM)'},
|
|
|
|
];
|
|
|
|
|
|
|
|
/// MAME support
|
|
|
|
|
|
|
|
var Atari8MAMEPlatform = function(mainElement) {
|
|
|
|
var self = this;
|
|
|
|
this.__proto__ = new BaseMAMEPlatform();
|
|
|
|
|
2018-06-22 06:24:52 +00:00
|
|
|
this.loadROM = function(title, data) {
|
|
|
|
this.loadROMFile(data);
|
|
|
|
this.loadRegion(":cartleft:cart:rom", data);
|
|
|
|
}
|
|
|
|
|
|
|
|
this.getPresets = function() { return Atari8_PRESETS; }
|
|
|
|
|
|
|
|
this.getToolForFilename = getToolForFilename_6502;
|
|
|
|
this.getDefaultExtension = function() { return ".c"; };
|
|
|
|
}
|
|
|
|
|
|
|
|
var Atari800Platform = function(mainElement) {
|
|
|
|
var self = this;
|
|
|
|
this.__proto__ = new Atari8MAMEPlatform(mainElement);
|
|
|
|
|
2018-06-20 08:06:18 +00:00
|
|
|
this.start = function() {
|
|
|
|
self.startModule(mainElement, {
|
|
|
|
jsfile:'mameatari400.js',
|
2018-06-22 06:24:52 +00:00
|
|
|
biosfile:'a400.zip', // TODO: load multiple files
|
2018-06-20 08:06:18 +00:00
|
|
|
//cfgfile:'atari5200.cfg',
|
2018-06-22 06:24:52 +00:00
|
|
|
driver:'a400',
|
2018-06-21 18:15:05 +00:00
|
|
|
width:336*2,
|
|
|
|
height:225*2,
|
2018-06-20 08:06:18 +00:00
|
|
|
romfn:'/emulator/cart.rom',
|
2018-06-22 06:24:52 +00:00
|
|
|
romsize:0x2000,
|
2018-06-20 08:06:18 +00:00
|
|
|
preInit:function(_self) {
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
2018-06-22 06:24:52 +00:00
|
|
|
}
|
2018-06-20 08:06:18 +00:00
|
|
|
|
2018-06-22 06:24:52 +00:00
|
|
|
var Atari5200Platform = function(mainElement) {
|
|
|
|
var self = this;
|
|
|
|
this.__proto__ = new Atari8MAMEPlatform(mainElement);
|
2018-06-20 08:06:18 +00:00
|
|
|
|
2018-06-22 06:24:52 +00:00
|
|
|
this.start = function() {
|
|
|
|
self.startModule(mainElement, {
|
|
|
|
jsfile:'mameatari400.js',
|
|
|
|
biosfile:'a5200/5200.rom',
|
|
|
|
//cfgfile:'atari5200.cfg',
|
|
|
|
driver:'a5200',
|
|
|
|
width:336*2,
|
|
|
|
height:225*2,
|
|
|
|
romfn:'/emulator/cart.rom',
|
|
|
|
romsize:0x2000,
|
|
|
|
preInit:function(_self) {
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
2018-06-20 08:06:18 +00:00
|
|
|
}
|
|
|
|
|
2018-06-22 06:24:52 +00:00
|
|
|
|
2018-06-20 08:06:18 +00:00
|
|
|
///
|
|
|
|
|
2018-06-22 06:24:52 +00:00
|
|
|
PLATFORMS['atari8-800'] = Atari800Platform;
|
|
|
|
PLATFORMS['atari8-5200'] = Atari5200Platform;
|