1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-29 14:51:17 +00:00

Merge pull request #66 from damieng/patch-1

Correct ZX Spectrum memory map
This commit is contained in:
Steven Hugg 2021-05-07 09:44:52 -05:00 committed by GitHub
commit 50374c8bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,13 +12,13 @@ const ZX_PRESETS = [
const ZX_MEMORY_MAP = { main:[ const ZX_MEMORY_MAP = { main:[
{name:'BIOS', start:0x0000, size:0x4000, type:'rom'}, {name:'BIOS', start:0x0000, size:0x4000, type:'rom'},
{name:'Screen RAM', start:0x4000, size:0x1800, type:'ram'}, {name:'Screen RAM', start:0x4000, size:0x1800, type:'ram'},
{name:'Color RAM', start:0x5800, size:0x200, type:'ram'}, {name:'Color RAM', start:0x5800, size:0x300, type:'ram'},
//{name:'Printer Buffer', start:0x5b00, size:0x100, type:'ram'}, //{name:'Printer Buffer', start:0x5b00, size:0x100, type:'ram'},
{name:'System RAM', start:0x5c00, size:0xc0, type:'ram'}, {name:'System RAM', start:0x5c00, size:0xc0, type:'ram'},
{name:'User RAM', start:0x5ccb, size:0xff58-0x5ccb, type:'ram'}, {name:'User RAM', start:0x5ccb, size:0xff58-0x5ccb, type:'ram'},
] } ] }
// WASM C64 platform // WASM ZX Spectrum platform
class ZXWASMPlatform extends BaseZ80MachinePlatform<ZX_WASMMachine> implements Platform { class ZXWASMPlatform extends BaseZ80MachinePlatform<ZX_WASMMachine> implements Platform {
newMachine() { return new ZX_WASMMachine('zx'); } newMachine() { return new ZX_WASMMachine('zx'); }