Post by Michael 'AppleWin Debugger Dev' Post by Michael J. Mahon
I was just using AppleWin’s debugger to examine some bank switching code,
including a couple of memory mini-windows.
How do I specify whether main or aux RAM are viewed?
And how do I list the contents of a region of aux RAM?
Sorry that this isn't documented in the Debugger > Memory help. I'll add
this to my TODO list.
a) The debugger always uses the _current memory bank soft-switch settings,_
b) You will have to use the debugger OUT commands to temporary switch to
aux mem, view the memory, and then restore the bank-switched stated
before continuing execution.
Note: You can also use the partial debugger commands O or OU instead of
OUT if you wish to save typing.
Unfortunately there is no easy way to restore the current bank-switch
state so you will have to manually inspect the mini-memory flags 02:Rm/x
Wm/x line BEFORE changing the bank flags. (Maybe PUSHM and POPM might be
a good feature request?)
Using my VIEW.DHGR program as an example...
We'll use LDA #'A' for aux, and
And LDA #'M' for main.
O 3 // Disassembly and Mini-memory dump will now show Aux memory
DATA // Switch to a memory dump viewing
O 2 // Disassembly and Min-memory dump again show Main memory
CODE // Switch back to disassembly viewing
The soft-switch panel shows which OUT address(es) you need to toggle the
* When you execute OUT 03 you will see the the "x" displayed in inverse
mode to signal that you are reading aux memory.
* Likewise when you execute OUT 02 you will see the "m" displayed in
inverse mode to signal that you are reading main memory.
Sorry again that this isn't documented in the manual.
Hope this helps.
Michael, AppleWin Debugger Dev