I've been reading up on bank switching on Wiki and in particular here which contains the below nice image and have a few questions:
Am I right in thinking that
LOAD
loads into RAM (dark grey in the image), ignoring any switched-in banks? For example if the.prg
had header $01 $08 followed by 63486 zero's thenLOAD
would effectively zero fill the computers memory from $0801 onward? If I were to switch-out any of BASIC ROM, IO, or Kernal, for example, thenPEEK
ing (LDA
ing) those areas would return zero?If I switch out BASIC ROM do I need to disable any interrupts at all?
If IO and Kernal are not switched-out the CPU will see them and not the underlying RAM, but will the VIC see RAM there regardless? If so I was going to use $C000-$FFFF for graphics (character set and sprites) whilst keeping IO and Kernal switched-in for the CPU to see.
LOAD
ing should write into RAM below ROM, except in the I/O area. I/O is writable too