Mouse In A Hole, the platform game the course builds in Xtal BASIC 4.2, running on the Tatung Einstein: the mouse mid-jump between platforms, two cats and the cheese
← Back to Courses
module
39

Appendix IV - The Keyboard

The course names keys the way the Einstein does: ENTER, DELETE, ESC, BREAK, GRPH, F0. Where that key is depends on what you are sitting at.

On A Real Einstein

Press the key with that name on it. For a character, find it on the keys; if it is the upper of two on a key, hold SHIFT.

Wherever the course has a line beginning In MAME, it is not talking to you, and you can skip it.

In MAME

You are typing on a modern keyboard that is standing in for the Einstein's. MAME lays one over the other by position, not by what is printed on your keys. The letters and the digits land where you expect. These do not need thinking about either:

Einstein keyIn MAME, press
ENTERReturn
SHIFT, CTRL, TAB, ESC, CAPS LOCKthe key of the same name
the four arrow keysthe four arrow keys
SPACEthe space bar

These do:

Einstein keyIn MAME, press
DELETEBackspace
BREAKthe left Alt key - left Option on a Mac
GRPHF8
F0 to F6F1 to F7: always one more than the Einstein's number
F7F8 - which is also GRPH. Pressing it presses both

And the punctuation:

For thisOn the EinsteinIn MAME, press
"SHIFT and 2SHIFT and 2
@SHIFT and 0SHIFT and 0
( and )SHIFT and 8, SHIFT and 9SHIFT and 8, SHIFT and 9
:the : * keythe ' key, to the right of ;
*SHIFT and the : * keySHIFT and that same ' key
;the ; + key;
+SHIFT and the ; + keySHIFT and ;
=the = - key=
- (minus)SHIFT and the = - keySHIFT and =
_the - £ keythe - key
|the one-half keythe \ key
\SHIFT and the one-half keySHIFT and \
[ ] ^the left, right and up arrowsthe left, right and up arrows
. , /where you expectwhere you expect

The key with - printed on it gives an underscore. It is the one that catches everybody: PRINT 7_2 prints 7 and then Syntax Error. Minus is SHIFT and =.

The positions are those of a British or American keyboard, which agree about every key in these tables. If yours is laid out differently, go by where the key is rather than by what is printed on it.

Characters That Look Different On The Screen

The Einstein draws a few characters its own way. They are the same characters - the same codes - and BASIC treats them exactly as this course prints them; only the picture on the screen differs:

TypedCodeOn the screen
[91a left arrow
]93a right arrow
^94an up arrow
\92one half
{123one quarter
}125three quarters
|124a double bar
~126a division sign

So the arrow keys, which type [, ] and ^, show arrows; and ^, which raises a number to a power (S7), looks like an up arrow in your listings.

Keys That Do Things

KeyWhat it does
CAPS LOCKCapitals on or off. On when BASIC starts.
DELETERubs out the character to the left of the cursor, on the line you are typing.
CTRL and a letterThe editing keys of S5: CTRL-K up, CTRL-D right, CTRL-H left, CTRL-L clears the screen and keeps the program.
ESCStops a LIST that is waiting at the end of a page.
F0 to F7Nothing, until KEY gives them something to type (S34).
The arrowsType [, ] and ^ - they do not move the cursor.

Stopping A Program

In MAME no key stops a running program, BREAK included. That is why every game loop in this course contains a line like

IF KBD<>0 THEN STOP

or a key of its own for stopping, as the game's Q is (S13). And save before you run anything new (S2, S6).

MAME's Own Keys

MAME has control keys of its own - Esc to quit, F3 to reset the machine, F5 to pause it. They would collide with keys the Einstein needs, so MAME starts with them switched off, and Esc, Tab and the function keys go to the Einstein.

One key switches them on. On a Mac it is forward delete, which on a laptop is Fn and Backspace. On Windows and Linux, MAME's documentation gives it as Scroll Lock.

Leave it alone. If it has been pressed, the next ESC closes MAME instead, and takes with it anything you had not saved. Pressing the same key again hands the keyboard back to the Einstein.

To stop MAME on purpose, close its window - after SAVE.

The Joystick

In MAME, joystick 1's fire button is the left Ctrl key - which is also the Einstein's CTRL. Holding CTRL presses fire.

Get the Newsletter

New guides, disk images and community finds, roughly once a quarter. No spam, we promise, this isn't Tatung's marketing department.
Your subscription could not be saved. Please try again.
Your subscription has been successful.

Newsletter

Subscribe to our newsletter and stay updated.