module
24

The primer names keys the way the Einstein does: ENTER, DELETE, ESC, CONTROL, CAPS LOCK. Where they are in MAME is exactly as in the Turbo course: see its Appendix IV.
| Key | Does |
|---|---|
| ENTER | Stores a numbered line, or carries out a command (LIST, SAVE, DOS) |
| LEFT, RIGHT | Type [ and ] - shown on screen as ← and → |
| UP | Types ^ |
| CAPS LOCK | On when XBAS starts. Off or on, XBAS stores every letter of a Pascal line as a capital - quotes included |
Five characters are changed by XBAS wherever you type them: ? becomes PRINT, { OR, | XOR, } >, ~ /. Use CHR(63) for a question mark and (* *) for comments (S3).
Lines are changed by their numbers: retype a line to replace it, type its number alone to delete it, RENUM to renumber. After AUTO, ENTER on an empty number stops the numbering. A line whose Pascal begins with a digit needs (**) in front (S10).
Wait for 0: before typing the next command. Keys typed while the disc is being read are lost.
| Key | When | Does |
|---|---|---|
E | At an *ERROR* | Back to 0: at once |
| Any other | At an *ERROR* | Goes on to the next error |
Y | At File exists - Delete? | Compiles over the old .COM |
| Any other | At File exists - Delete? | Back to 0:, the old .COM kept |
| Key | Does |
|---|---|
| CTRL-C | Stops the program with Halt at PC=... - unless it was compiled with (*$C-*), when it does nothing |
| DELETE | Rubs out the last character while you type an answer to READ |
| ENTER | Ends an answer to READ |
| Key | INCH gives |
|---|---|
| UP | ^ (94) |
| DOWN | CHR(10) |
| LEFT | [ (91) |
| RIGHT | ] (93) |
| ENTER | CHR(13) |
| ESC | CHR(27) |
| No key | CHR(0) |
Letters come as the keyboard types them - capitals while CAPS LOCK is on.