Showing changes from revision #3 to #4:
Added | Removed | Changed
A table below lists the VDU codes and their meanings. Some VDU codes require parameters sending as extra bytes; e.g. VDU 22 (select screen mode) requires the screen mode passing as a parameter (one extra byte). The number of extra bytes required is also listed.
VDU code | Ctrl plus | Extra bytes | _\4 | Meaning | ||||
---|---|---|---|---|---|---|---|---|
0 | Dec | @ | Hex | 0 | Ctrl plus | Does nothing | Extra bytes | Meaning |
Does nothing | ||||||||
Sends next character to printer only | ||||||||
B | 0 | |||||||
C | 0 | |||||||
D | 0 | Writes text at |
||||||
E | 0 | |||||||
F | 0 | |||||||
G | 0 | |||||||
H | 0 | Moves cursor |
||||||
I | 0 | Moves cursor |
||||||
J | 0 | Moves cursor |
||||||
K | 0 | |||||||
L | 0 | |||||||
M | 0 | |||||||
N | 0 | Turns |
||||||
O | 0 | |||||||
Clears graphics window | ||||||||
Defines text colour | ||||||||
Defines graphics colour | ||||||||
Defines logical colour | ||||||||
T | 0 | |||||||
Disables VDU drivers | ||||||||
Selects screen mode | ||||||||
23 | 17 | W | 9 | Multi-purpose command: | ||||
23,0 | Sets the interlace and controls cursor appearance | |||||||
23,1 | Controls text cursor appearance | |||||||
23,2-5 | Defines ECF pattern and colours | |||||||
23,6 | Sets dot-dash line style | |||||||
23,7 | Scrolls text window or screen | |||||||
23,8 | Clears a block of the text window | |||||||
23,9 | Sets first flash time | |||||||
23,10 | Sets second flash time | |||||||
23,11 | Sets default patterns | |||||||
23,12-15 | Defines simple ECF patterns and colours | |||||||
23,16 | Controls cursor movement after printing | |||||||
23,17,0-3 | Sets the tint for a colour | |||||||
23,17,4 | Chooses ECF patterns | |||||||
23,17,5 | Exchanges text foreground and background colours | |||||||
23,17,6 | Sets ECF origin | |||||||
23,17,7 | Sets character size/spacing | |||||||
23,18-24 | Reserved for future expansion | |||||||
23,25-26 | Private Font Manager calls | |||||||
23,27 | Private Sprite Manager calls | |||||||
23,28-31 | Reserved for use by application programs | |||||||
23,32-255 | Redefines printable characters | |||||||
24 | 18 | X | 8 | Defines graphics window | ||||
25 | 19 | Y | 5 | PLOT command | ||||
26 | 1A | Z | 0 | Restores default windows | ||||
27 | 1B | [ | 0 | Does nothing | ||||
28 | 1C | \ | 4 | Defines text window | ||||
29 | 1D | ] | 4 | Defines graphics origin | ||||
30 | 1E | ^ | 0 | Homes text cursor | ||||
31 | 1F | _ | 2 | Moves text cursor | ||||
127 | 7F | 0 | Delete |