Inspired by Anthony's program over in c.s.a2 here is a Applesoft BASIC program to display a memory map and limited soft switches.
NOTE: The IO soft switch address don't exactly match the hardware switches due to:
a) some are contiguous b) some require multiple locations to activate (i.e. TEXT/GR and Lo-Res/Hi-Res)