例
ある表示ルーチンが、実行されるたびに異なる 3 次元変換行列を計算して退避するとします。(物体が回転しているように見せるようプログラムされているかもしれません。)このルーチンのユーザーは、通常、行列を設定してから 10 回あるいは 20 回(あるいはそれ以上)の実行を「一気に走らせる」ことを望むでしょう。これは次のようにして行えます。
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.
この例に対するグラフィックス・ローダーからの出力は次のようになります。
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.)
.
.