LABEL SELECT ; Main loop starts here
KEY 1 SHOW1; Branch to „SHOW1“ in case of key 1
KEY 2 SHOW2; Branch to „SHOW2“ in case of key 2
KEY 3 SHOW3; Branch to „SHOW3“ in case of key 3
JUMP SELECT; Otherwise return to „SELECT“
This is the so-called „main loop“. It does not include the three subroutines which we will use
to show the three SCREENS. In our case, the subroutines are short and straightforward and are
simply „tacked onto“ the main loop:
KODAK S-RA2500 Editing System 1.0 User Manual Page: 51
LABEL SHOW1; First subroutine
SHOW PICTURE1 ; Show picture 1
WAIT 3 ; 3 seconds to look
JUMP START; Return to the start
LABEL SHOW2; Second subroutine
SHOW PICTURE2 ; Show picture 2
WAIT 3 ; 3 seconds to look
JUMP START; Return to the start
LABEL SHOW3; Third subroutine
SHOW PICTURE3 ; Show picture 3
WAIT 3 ; 3 seconds to look
JUMP START; Return to the start
After this program has been keyed in, it can only be run by using the CURRENT PROGRAM
function in the EXECUTE menu because, as you know, program branches and SCREEN
instructions are only executed in real-time mode. Write the blocks of text which are used in the
example yourself and name them according to the example. Naturally, if you don’t wish to do
this yourself you can also use any of the blocks of text in the list on the example diskette.
The KEY instruction has two other special features which must be mentioned even though they
are not used in our exam
e .
Waiting ti
s :
A KEY instruction means that a test is performed to establish whether a key has been pressed ra
her than that your program waits for a key to be pressed. If no key has been pressed, the pro
ram continues immediately. In our example this had no significance because „continue“ meant „
rom the start“. If you wish to allow the user a specific time to press a key you can achieve thi
by placing a WAIT instruction before the keyboard status poll as shown in the following exam
l e : KODAK S-RA2500 Editing System 1.0 User Manual Page
2
WAIT 10 ; 10 s waiting time
KEY 1 SHOW1 ; Branch to „SHOW1“ in the case of key 1
KEY 2 SHOW2 ; Branch to „SHOW2“ in the case of key 2