HiSoft Pascal Primer cover: a square, a triangle and a circle drawn and filled by a HiSoft Pascal program on the Tatung Einstein
← Back to Modules
module
24

Appendix IV - The Keyboard

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.

In XBAS

KeyDoes
ENTERStores a numbered line, or carries out a command (LIST, SAVE, DOS)
the ← and → keysType [ and ], shown on screen as ← and →. In MAME, the Left and Right arrows
the ↑ keyTypes ^. In MAME, the Up arrow
the two cursor keysMove the cursor: horizontal right, SHIFT left; vertical down, SHIFT up. Type over a listed line and press ENTER to store it. In MAME, Tab and the Down arrow
CAPS LOCKOn 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).

The Cursor Keys

The Einstein does not have four arrow keys. It has two grey cursor keys, side by side at the right-hand end of the QWERTY row, each marked with a double-headed arrow:

KeyOn its ownWith SHIFT
the horizontal cursor keycursor rightcursor left
the vertical cursor keycursor downcursor up

Three other keys have a single arrow printed on them, but they are ordinary character keys, and the arrow is the character they type: the Einstein draws [ as a left arrow, ] as a right arrow and ^ as an up arrow.

KeyWhere it isTypesWith SHIFT
← (marked ¼ and ←)end of the QWERTY row, next to the cursor keys[{
→ (marked ¾ and →)end of the ASDF row, next to ENTER]}
↑ (marked ÷ and ↑)the number row, between = and ½^~

In MAME the two cursor keys are on your Tab key and your Down arrow: Tab is right, Shift and Tab is left, Down is down, and Shift and Down is up. Your Left, Right and Up arrows are the three character keys: Left types [, Right types ] and Up types ^. That is why MAME users so often report that the Einstein's arrow keys type brackets and do not move the cursor. The keys under those three arrows are not the cursor keys.

In XBAS the two cursor keys move the cursor over a listed line, and ENTER stores the line as it now reads, as in Xtal BASIC. A program reading the keyboard with INCH (S15) sees the vertical key as CHR(10).

Tatung's own manual describes the two cursor keys and the keyboard this way, and MAME's Einstein agrees with it. What the keys do in XBAS and a running program was checked in MAME, not on a real Einstein. If you have one and it behaves differently, please let us know and this page will be corrected.

At The 0: Prompt

Wait for 0: before typing the next command. Keys typed while the disc is being read are lost.

While HPEIN Compiles

KeyWhenDoes
EAt an *ERROR*Back to 0: at once
Any otherAt an *ERROR*Goes on to the next error
YAt File exists - Delete?Compiles over the old .COM
Any otherAt File exists - Delete?Back to 0:, the old .COM kept

While A Program Runs

KeyDoes
CTRL-CStops the program with Halt at PC=... - unless it was compiled with (*$C-*), when it does nothing
DELETERubs out the last character while you type an answer to READ
ENTEREnds an answer to READ

What INCH Sees

KeyINCH gives
the ↑ key (Up arrow in MAME)^ (94)
the vertical cursor key (Down arrow in MAME)CHR(10)
the ← key (Left arrow in MAME)[ (91)
the → key (Right arrow in MAME)] (93)
ENTERCHR(13)
ESCCHR(27)
No keyCHR(0)

Letters come as the keyboard types them - capitals while CAPS LOCK is on.

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.

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.