Example
Suppose a display routine calculated and saved a different 3 dimensional transformation matrix each time it was executed. (It might be programmed to make an object appear to rotate.) The user of the routine typically would want to set up the matrices and then "let 'er rip" with ten or twenty (or more) executions. This could be done as follows:
SETUP,,0
+-->length,,2000 ; length of display pgm
| - ; large output area
| | -----
| | -----
+--> -----
| program
| -----
| -----
-
MODESET,,5 ; auto transmit in ARDS mode
0,,1000+length ; arguments for transmit
; meaning "current contents
; of output area"
EXQ,,10 ; execute 10 times, sending
; the data each time
UPDATE,,20 ; update, then execute 20 times
8,,address of matrix ; arguments for update, to
- ; change a matrix
|
8 words - new matrix
|
_
etc.
The output from the Graphics Loader for this example would be as follows:
ACKNOWLEDGE setup,setup :(See description of ACKN
; for format in word)
ACKNOWLEDGE modeset,modeset
ACKNOWLEDGE transmit, exq
output,,1 ; output in ARDS mode
leng1,,0
_
|
- data
|_
ACKNOWLEDGE transmit,exq
output,,1
leng2,,0
_
|
- data
|_
. (in total, there are 10 sets of output.)
.
.
ACKNOWLEDGE update,update
ACKNOWLEDGE transmit, update
output,,1
leng11,,0
-
|
- data
|
-
. (in total, there are 20 sets of output.)
.
.