9 Further programming
information
Subjects covered in this chapter
* Text Legal Position
* Control Characters
* The Machine Operating System
* Interrupt structures
9.1 Cursor locations and control code extensions
In a variety of applications programs, the text cursor may be positioned outside the current window.
Various operations force the cursor to a legal position before they are performed, these are
:
? ?
writing a character
? ?
drawing the cursor ‘block’
? ?
obeying the control codes marked with an asterisk in the list on the following
pages.
The procedure for forcing the cursor to a legal position is as follows
:
a. If the cursor is to the right of the right hand edge, then it is moved to the leftmost column of the
next line down.
b. If the cursor is to the left of the left hand edge, then it is moved to the rightmost column of the next
line up.
c. If the cursor is above the top edge, then the window is rolled down a line and the cursor is set to
the top line of the window.
d. If the cursor is below the bottom edge, then the window is rolled up a line and the cursor is set to
the bottom line of the window.
The tests and operations are done in the order given. The illegal cursor positions may be zero or
negative, which are off to the left or above the window.
Character values (see appendix III) in the range 0....31 sent to the text screen do not produce a
character on the screen (and should not be injudiciously applied) but are interpreted as
CONTROL
CODES
, Some of the codes alter the meaning of one or more of the following characters, which are
the code’s parameters.
The codes marked * force the cursor to a legal position in the current window before they are obeyed
- but may leave the cursor in an illegal position. The codes and their meanings are described with
first their
HEX
value (&XX), then the decimal equivalent.
Содержание CPC464
Страница 1: ......
Страница 32: ...or you can type 3e1 1e1 ENTER 300 2 3000x1000 Type 3e3 1e3 ENTER 3000000 3 3000x0 001 Type 3e3 1e 3 ENTER 3 ...
Страница 102: ...PRINT 10 AND 12 Results in 8 PRINT 10 AND 1000 Results in 8 again ...
Страница 118: ...TO DO DRAW THIS PAGE ...
Страница 219: ...actual value may be made to vary during the execution of a program ...
Страница 240: ...Text and WINDOW planner Mode 2 80 Columns ...
Страница 241: ......
Страница 245: ...Sound envelope Music planner sheet ...