1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-25 18:33:11 +00:00

nes: updated memory map

This commit is contained in:
Steven Hugg 2022-02-24 12:11:08 -06:00
parent e7e5ea7847
commit 30db34837c
3 changed files with 10 additions and 3 deletions

View File

@ -187,5 +187,5 @@ end
Slice PNGs into sprites
Maybe output decoder text
Action priorities - before, after
Generate C symbols

View File

@ -175,6 +175,12 @@ export class AssetEditorView implements ProjectView, pixed.EditorContext {
var meta = {defs:metadefs,width:width*8,height:height*8};
result.push({fileid:id,label:ident,meta:meta});
}
// TODO: look for decode <ident> --- ... ---
/*
var re3 = /\bdecode\s+(\w+)\s*---(.+?)---/gims;
while (m = re3.exec(data)) {
}
*/
return result;
}

View File

@ -475,11 +475,12 @@ class JSNESPlatform extends Base6502Platform implements Platform, Probeable {
}
getMemoryMap = function() { return { main:[
//{name:'Work RAM',start:0x0,size:0x800,type:'ram'},
{name:'Zero Page RAM',start:0x0,size:0x100,type:'ram'},
{name:'OAM Buffer',start:0x200,size:0x100,type:'ram'},
{name:'Work RAM',start:0x300,size:0x1000-0x300,type:'ram'},
{name:'PPU Registers',start:0x2000,last:0x2008,size:0x2000,type:'io'},
{name:'APU Registers',start:0x4000,last:0x4020,size:0x2000,type:'io'},
{name:'Cartridge RAM',start:0x6000,size:0x2000,type:'ram'},
{name:'Optional Cartridge RAM',start:0x6000,size:0x2000,type:'ram'},
] } };
showHelp(tool:string, ident:string) {