Product specifications
The routine reads the keyboard and echoes the typed characters on the screen.
Control Codes and RST 10
In the ASCII character set there are 32 invisible characters before the first printable
character (space). These invisible characters are called control characters. For
example pressing both the control key and the ‘G’ key at the same time generates the
bell code, character 7. These codes are extremely powerful in the MTX when used
with RST 10.
Try the following example:
START: LD B,160
LOOP: RST 10
DB £86, “ * “
DJNZ LOOP
LOOP: RST 10
DB £8B, 15,0, “*”, £10,£10,£38
DB £54,£10,£10,£10,£38
CALL PAUSE
RST 10
DB £8B, 15,0,”*”, 0,0,£10,£54
DB £38,£10,£7C,£44
CALL PAUSE
JP LOOP1
RET
PAUSE: LD B,50
PAUSE1: HALT
DJNZ PAUSE1
RET
The program works by first printing up a series of “*” characters and then redefining
them to give an animation effect.
The following is a list of commands available through RST 10:
ASCII Function
Code
1 plot x,y
2 line x1, y1, x2, y2
3 cursor x,y
7 bell
10 line feed,cursor down
12 cls and home
13 vertical tab
13 carriage return
14 ctlspr p,x
15 genpat p,n,d0,d1,d2,d3,d4,d5,d6,d7
16 colour p,b
17 adjspir p,n,v
18 sprite n,p,xp,yp,xs,ys,col
19 movspir p,n,d
20 view dir,dis