When editing a document in Protext, it is possible to enter Command Mode by pressing
[Shift][Control][Stop].
The screen clears (except for the time) and you get a command line at the top-left. Three commands are known.
There is KEY which is another means of defining macros. To use it type a command such as:
KEY a "This is a MACRO"
The other two commands are complementary. The first is DU which dumps any part of the Notepad's RAM or ROM (whatever is mapped in) to the screen. Simply type:
DU &4000
or whatever other address you are interested in, and all the data will be printed to the screen in hexadecimal and as ASCII characters. Just press [Stop] to stop the screen from scrolling, any other key to resume printing, or [Stop] a second time to return to the command mode.
Using the MM command you can map in other parts of the system memory to location &4000, which you can then view using the DU command. So, to page in the Basic ROM, you would type:
MM &05
The values you can use and the RAM or ROM that gets paged in are:
MM &00 | ROM | Operating System |
MM &01 | ROM | Control code |
MM &02 | ROM | Calculator |
MM &03 | ROM | Address book |
MM &04 | ROM | Diary |
MM &05 | ROM | BBC Basic |
MM &06 | ROM | Protext |
MM &07 | ROM | Protext |
MM &08 | ROM | Spell Check Code |
MM &09 | ROM | Spell Check Code |
MM &0A | ROM | Dictionary |
MM &0B | ROM | Dictionary |
MM &0C | ROM | Dictionary |
MM &0D | ROM | Dictionary |
MM &0E | ROM | Dictionary |
MM &0F | ROM | Dictionary |
MM &40 | RAM | Internal RAM |
MM &41 | RAM | Internal RAM |
MM &42 | RAM | Internal RAM |
MM &43 | RAM | Internal RAM - including Video RAM |
MM &80- | RAM | Card RAM of up to 64x 16K blocks (for 1MB card) |