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 Courses
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)
LEFT, RIGHTType [ and ] - shown on screen as ← and →
UPTypes ^
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).

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
UP^ (94)
DOWNCHR(10)
LEFT[ (91)
RIGHT] (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.