388 followed by a MODE change to a non-shadow MODE . The following command sequence illustrates the memory map changes which take place when using the *SHADOW commands: MODE 3 P. ~HIMEM 4000 *SHADOW P. ~HIMEM 4000 MODE 3 P. ~HIMEM 8000 MODE 131 would have the same effect as the second MODE 3 command above, although in that case there would be no need for the preceding *SHADOW command. Continuing from the above sequence we have: *SHADOW 1 P. ~HIMEM 8000 MODE 3 P. ~HIMEM 4000 Substituting MODE 131 for MODE 3 above would give: P. ~HIMEM 8000 The *SHADOW commands are useful when switching between software which uses shadow RAM and software which doesn’t.
Other shadow mode-related commands *FX114 produces the same effect as *SHADOW , and *FX114,1 produces the same effect as *SHADOW 1 . VDU22, (used when in non-shadow mode) will select MODE n; shadow mode will not be entered and HIMEM will not be reset. Shadow mode is retained across a soft break, but is reset to non-shadow by a hard break.