diff --git a/presets/apple2/apple2-hgr2.cfg b/presets/apple2/apple2-hgr2.cfg new file mode 100644 index 00000000..487935ca --- /dev/null +++ b/presets/apple2/apple2-hgr2.cfg @@ -0,0 +1,51 @@ +# Configuration for programs including two hires screens (with 6KB LOWCODE) +# Assumes no DOS, just a RWTS + +FEATURES { + STARTADDRESS: default = $0803; +} +SYMBOLS { + __EXEHDR__: type = import; + __FILETYPE__: type = weak, value = $0006; # ProDOS file type + __STACKSIZE__: type = weak, value = $0200; # 512-byte stack + __HIMEM__: type = weak, value = $B600; # Presumed RAM end + __LCADDR__: type = weak, value = $D400; # Behind quit code + __LCSIZE__: type = weak, value = $0C00; # Rest of bank two +} +MEMORY { + ZP: file = "", define = yes, start = $0080, size = $001A; + HEADER: file = %O, start = %S - $003A, size = $003A; + MAIN: file = %O, define = yes, start = %S, size = __HIMEM__ - %S; + BSS: file = "", start = __ONCE_RUN__, size = __HIMEM__ - __STACKSIZE__ - __ONCE_RUN__; + LC: file = "", define = yes, start = __LCADDR__, size = __LCSIZE__; +} +SEGMENTS { + ZEROPAGE: load = ZP, type = zp; + EXEHDR: load = HEADER, type = ro, optional = yes; + STARTUP: load = MAIN, type = ro; + LOWCODE: load = MAIN, type = ro, optional = yes; + HGR: load = MAIN, type = rw, optional = yes, start = $2000; + HGR2: load = MAIN, type = rw, optional = yes, start = $4000; + CODE: load = MAIN, type = ro start = $6000; + RODATA: load = MAIN, type = ro; + DATA: load = MAIN, type = rw; + INIT: load = MAIN, type = rw; + ONCE: load = MAIN, type = ro, define = yes; + LC: load = MAIN, run = LC, type = ro, optional = yes; + BSS: load = BSS, type = bss, define = yes; +} +FEATURES { + CONDES: type = constructor, + label = __CONSTRUCTOR_TABLE__, + count = __CONSTRUCTOR_COUNT__, + segment = ONCE; + CONDES: type = destructor, + label = __DESTRUCTOR_TABLE__, + count = __DESTRUCTOR_COUNT__, + segment = RODATA; + CONDES: type = interruptor, + label = __INTERRUPTOR_TABLE__, + count = __INTERRUPTOR_COUNT__, + segment = RODATA, + import = __CALLIRQ__; +} diff --git a/src/ide/ui.ts b/src/ide/ui.ts index 735adfda..11605467 100644 --- a/src/ide/ui.ts +++ b/src/ide/ui.ts @@ -279,11 +279,6 @@ function refreshWindowList() { return new Views.VRAMMemoryView(); }); } - if (platform.getDebugTree) { - addWindowItem("#debugview", "Debug Tree", () => { - return new Views.DebugBrowserView(); - }); - } if (platform.startProbing) { addWindowItem("#memheatmap", "Memory Probe", () => { return new Views.AddressHeatMapView(); @@ -307,6 +302,11 @@ function refreshWindowList() { }); */ } + if (platform.getDebugTree) { + addWindowItem("#debugview", "Debug Tree", () => { + return new Views.DebugBrowserView(); + }); + } addWindowItem('#asseteditor', 'Asset Editor', () => { return new Views.AssetEditorView(); });