SuperBox Demo 4
Visual Database Systems
June 14, 1999 
John Blakney 

How to do wait loops

Wait loops using timecode


Userinput is button number 1
Relays are on output numbers 0 and 1 that turn on and off with the program

Button 0 sets relay 0 off (high) and relay 1 on (low) and sets the display 
registers for time/frame and chapter numbers visible (but not displayed) and
search background to black. Execution goes to a loop on button 5.

BTN 0:
~01~10,
3RA16RC
[
>5


When the user input line 1 is contacted, relay 0 goes low, the player searches
for time 12:00 and sets the stop marker for 12:30 then begins playing. The first 
loop asks for the time until 12:10 is passed then relay 0 goes high and 1 goes low.
A second loop delays until 12:20 when relays 0 and 1 go low. Play continues till 12:30
then control jumps back to button 5 - the attract loop.


BTN 1:
~00,
TM1200SE
[
1230SMPL
[
\L1,?+T<1210|>L1|
~01~11,
\L2,?+T<1220|>L2|
~00~10,
TM1230PL
[
>5,


Button 5 is the attract loop, The relays are reset again here, same as startup.
It plays from 10:00 to 10:30 and repeats with buttons enabled.

BTN 5:
~01~10,
TM1000SE
[
;,1030PL
[
>5