Aller au contenu principal

Exemple

Supposons qu'une routine d'affichage calcule et sauvegarde une matrice de transformation tridimensionnelle différente à chaque exécution. (Elle pourrait être programmée pour donner l'impression qu'un objet tourne.) L'utilisateur de la routine voudrait typiquement établir les matrices puis « laisser tourner » avec dix ou vingt exécutions (ou plus). Cela pourrait être fait comme suit :

        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.

La sortie du Graphics Loader pour cet exemple serait la suivante :

   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.)
.
.