From c51744322deb30b0179e41f03150490c2be32ad3 Mon Sep 17 00:00:00 2001 From: Damien Guard Date: Mon, 3 May 2021 19:09:11 +0100 Subject: [PATCH] Correct ZX Spectrum memory map Screen colour area is 768 bytes not 512. --- src/platform/zx.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/zx.ts b/src/platform/zx.ts index fea6af85..6fb6e04f 100644 --- a/src/platform/zx.ts +++ b/src/platform/zx.ts @@ -12,13 +12,13 @@ const ZX_PRESETS = [ const ZX_MEMORY_MAP = { main:[ {name:'BIOS', start:0x0000, size:0x4000, type:'rom'}, {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:'System RAM', start:0x5c00, size:0xc0, type:'ram'}, {name:'User RAM', start:0x5ccb, size:0xff58-0x5ccb, type:'ram'}, ] } -// WASM C64 platform +// WASM ZX Spectrum platform class ZXWASMPlatform extends BaseZ80MachinePlatform implements Platform { newMachine() { return new ZX_WASMMachine('zx'); }