Home » CEEFAX disks » telesoftware16.adl » 03-06-89/Smart99

03-06-89/Smart99

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » CEEFAX disks » telesoftware16.adl
Filename: 03-06-89/Smart99
Read OK:
File size: 0D08 bytes
Load address: FFFF2100
Exec address: FFFF8023
File contents
   10REM Smart Video File: Smart99
   20REM This is the main program
   30REM (C)BBC 1989
   40ONERRORPROC2
   50CLOSE#0:u%=600:i%=800:e%=0:b%=TRUE:f%=FALSE:m%=FALSE:j%=0:`%=FN@:g%=0:h%=0:VDU15:CLS:PROC3:PROC4:PROC5:PROC6:REPEAT:PROC@:PROC0:PROC1:PROC7:PROC8:UNTILm%=TRUE:*CLOSE
   60MODE7:END
   70DEFPROC4:*KEY1*CLOSE|MMO.7|M|NL.|M
   80*KEY3*CLOSE|MMO.7|M|NL.3890,|M
   90DIMn%1024:DIMc%2048:DIMa%512:OSCLI("LOAD data "+STR$~c%):_%=&80:o%=200:FORv%=0TO2STEP2:P%=n%:[OPTv%:LDA_%:PHA:LDA_%+1:PHA:LDA_%+2:PHA:LDA_%+3:PHA:LDA#(c%+1024)DIV256:STA_%+3:LDA#(c%+1024)MOD256:STA_%+2:LDA#c%DIV256:STA_%+1:LDA#c%MOD256:STA_%:BNEa:DEC_%+1:DEC_%+3:.a:DEC_%
  100DEC_%+2:LDX#0:LDY#0:LDAG:BNEb:.R:INC_%:INC_%+2:BNEc:INC_%+1:INC_%+3:.c:LDAN:STAJ:LDA#0:STAK:LDA(_%),Y:CMP#255:BEQS:JSRM:BNER:LDAT:STAJ:LDA#&FF:STAK:LDA(_%+2),Y:JSRM:BNER:.j:INCG:LDA_%:STAa%,X:STAH:LDA_%+1:STAa%+256,X:STAH+1:INX:JMPR:.S:JMPW:.b:LDYG
  110BEQS:CPY#1:BEQd:INY:STYO:LDY#0:STYG:STXI:STXL:.U:LDXI:LDAa%+256,X:STA_%+1:LDAa%,X:STA_%:INCI:LDAI:CMPO:BEQS:INC_%:BNEe:INC_%+1:.e:LDA_%+1:CLC:ADC#4:STA_%+3:LDA_%:STA_%+2:LDAN:STAJ:LDA#0:STAK:LDA(_%),Y:JSRM:BNEU:LDA#&FF:STAK:LDAT:STAJ:LDA(_%+2),Y
  120JSRM:BNEU:.k:INCG:LDXL:LDA_%:STAa%,X:STAH:LDA_%+1:STAa%+256,X:STAH+1:INCL:JMPU:.d:INY:STYO:LDY#0:STYG:STXI:STXL:.X:LDXI:LDAa%+256,X:STA_%+1:LDAa%,X:STA_%:INCI:LDAI:CMPO:BEQW:INC_%:BNEf:INC_%+1:.f:LDAN:STAJ:LDA#0:STAK:LDA(_%),Y:JSRM:BNEX:.l:INCG:LDXL
  130LDA_%:STAa%,X:STAH:LDA_%+1:STAa%+256,X:STAH+1:INCL:JMPX:.W:PLA:STA_%+3:PLA:STA_%+2:PLA:STA_%+1:PLA:STA_%:RTS:.M:STAQ:LDAK:BEQg:LDAQ:LSRA:LSRA:BNEh:.g:LDA#1:.h:STAV:LDAJ:CMP#200:BCCi:LDA#200:.i:STAY:LDAV:CLC:ADCY:CMPQ:BEQZ:BCC_:LDAJ:SEC:SBCV:CMPQ
  140BEQZ:BCS_:.Z:LDA#0:RTS:._:LDA#10:RTS:.m:.N EQUB255:.T EQUB255:.J EQUB255:.G EQUB0:.K EQUB0:.I EQUB0:.L EQUB0:.O EQUB0:.Y EQUB0:.H EQUW0:.V EQUB0:.Q EQUB0:]:NEXT:ENDPROC
  150DEFPROC0:?N=k%:?T=j%:CALLn%:ENDPROC
  160DEFFN@:A%=1:Y%=&FF:=(USR(&FFF4)DIV256)MOD256
  170DEFPROC1:IF ?G=1PROC9ELSEPROCA
  180ENDPROC
  190DEFPROC9:IFg%=1g%=0
  200IFb%h%=h%+1
  210IFh%=2h%=0:b%=FALSE
  220`= ?H+?(H+1)*256:p%=(`-c%+1)-`%:IF(ABS(p%)>30ANDf%=FALSE)b%=TRUE:?G=0
  230IF(ABS(p%)<10ANDf%=TRUE)b%=TRUE:?G=0
  240IFb%`%=`%+1ELSEf%=FALSE:`%=`-c%+1
  250ENDPROC
  260DEFPROCA:`%=`%+1:IFh%=1h%=0
  270IFb%=FALSEPROCB
  280ENDPROC
  290DEFPROCB:g%=g%+1:IFg%=1 ?G=1ELSEg%=0:b%=TRUE
  300ENDPROC
  310DEFPROC5:LOCALX%,H$,T%:X%=OPENIN"CALVAL":INPUT#X%,e%,i%:CLOSE#X%:CLS:PRINT'"Calibration Values for this":PRINT"machine are:":PRINT'"offset  ";e%:PRINT'"factor  ";i%:T%=TIME+200:REPEAT:UNTILTIME>T%:ENDPROC
  320DEFPROC7:LOCALA%,B%:IFf%=FALSEPROCC(`%)
  330A%=POS:B%=VPOS:VDU31,11,11:IFf%=FALSEPRINT"Event ";`%:VDU31,A%,B%
  340IFINKEY(-106)PROCD
  350ENDPROC
  360DEFPROCD:IF(`%>55AND`%<59)PROCE:CHAIN"RoboMC"
  370ENDPROC
  380DEFPROCE:A%=1:Y%=0:X%=(`%DIV4):CALL&FFF4:ENDPROC
  390DEFPROC6:LOCALF%:CLS:PRINT'"You are now ready to use":PRINT"Smart Video.":PRINT'"Once running, you can initiate":PRINT"a new search at any time by":PRINT"pressing the space bar.":PRINT'"Please start video player":PRINT"and then press any key.":H$=GET$:CLS:PRINT'"Initialising interface":F%=TIME+300:REPEAT
  400UNTILTIME>F%:REPEAT:l%=(ADVAL(1)-e%)DIVi%:UNTIL(l%MOD2)=0ANDl%<>0:CLS:PRINT'"Finding place in the video":TIME=0:REPEAT:PROC@:PROC0:UNTIL ?G=1:PROC1:CLS:PRINT'"Confirming place in the video":ENDPROC
  410DEFPROC@:REPEAT:IFINKEY(-99)f%=TRUE:?G=0:b%=TRUE:CLS:PRINT'"Finding new place in video":VDU30
  420k%=(ADVAL(1)-e%)DIVi%:UNTIL((k%MOD2)=0ANDk%<>l%)ORTIME>1000:j%=(TIME*2)DIV25:TIME=0:l%=k%:IFj%>o%j%=o%
  430ENDPROC
  440DEFPROC8:IFINKEY(-35)m%=TRUE
  450IF`%>=u%m%=TRUE
  460ENDPROC
  470DEFPROC3:DIMq%1024:r%=FALSE:OSCLI("LOAD control "+STR$~(q%)):s%=OPENUP("foot"):ENDPROC
  480DEFPROCC(w%):d%=q%-8:REPEAT:d%=d%+8:UNTIL !d%>w%OR !d%=0:e%=!(d%-4):t%=!(d%-8):IFt%<>r%PROCF(e%)
  490r%=t%:ENDPROC
  500DEFPROCF(O%):LOCALC%:IF !(d%-4)=-1CLS:ENDPROC
  510PTR#s%=O%:REPEAT:C%=BGET#s%:IFC%<255VDUC%:IFC%=13VDU10
  520UNTILC%=255:ENDPROC
  530DEFPROC2:CLOSE#0:IFERR<>17REPORT:PRINT" at line ";ERL:END
  540PRINT"Press R to restart and X to exit and finish":REPEAT:*FX 15,1
  550G$=GET$:UNTILG$="R"ORG$="r"ORG$="X"ORG$="x":IFG$="R"ORG$="r"OSCLI("FX 1,0"):RUN
  560END:ENDPROC

� Smart Video File: Smart99
� This is the main program
� (C)BBC 1989
(��2
2n�#0:u%=600:i%=800:e%=0:b%=�:f%=�:m%=�:j%=0:`%=�@:g%=0:h%=0:�15:�:�3:�4:�5:�6:�:�@:�0:�1:�7:�8:�m%=�:*CLOSE
<�7:�
F!��4:*KEY1*CLOSE|MMO.7|M|NL.|M
P"*KEY3*CLOSE|MMO.7|M|NL.3890,|M
Z��n%1024:�c%2048:�a%512:�("LOAD data "+�~c%):_%=&80:o%=200:�v%=0�2�2:P%=n%:[OPTv%:LDA_%:PHA:LDA_%+1:PHA:LDA_%+2:PHA:LDA_%+3:PHA:LDA#(c%+1024)�256:STA_%+3:LDA#(c%+1024)�256:STA_%+2:LDA#c%�256:STA_%+1:LDA#c%�256:STA_%:BNEa:DEC_%+1:DEC_%+3:.a:DEC_%
d�DEC_%+2:LDX#0:LDY#0:LDAG:BNEb:.R:INC_%:INC_%+2:BNEc:INC_%+1:INC_%+3:.c:LDAN:STAJ:LDA#0:STAK:LDA(_%),Y:CMP#255:BEQS:JSRM:BNER:LDAT:STAJ:LDA#&FF:STAK:LDA(_%+2),Y:JSRM:BNER:.j:INCG:LDA_%:STAa%,X:STAH:LDA_%+1:STAa%+256,X:STAH+1:INX:JMPR:.S:JMPW:.b:LDYG
n�BEQS:CPY#1:BEQd:INY:STYO:LDY#0:STYG:STXI:STXL:.U:LDXI:LDAa%+256,X:STA_%+1:LDAa%,X:STA_%:INCI:LDAI:CMPO:BEQS:INC_%:BNEe:INC_%+1:.e:LDA_%+1:CLC:ADC#4:STA_%+3:LDA_%:STA_%+2:LDAN:STAJ:LDA#0:STAK:LDA(_%),Y:JSRM:BNEU:LDA#&FF:STAK:LDAT:STAJ:LDA(_%+2),Y
x�JSRM:BNEU:.k:INCG:LDXL:LDA_%:STAa%,X:STAH:LDA_%+1:STAa%+256,X:STAH+1:INCL:JMPU:.d:INY:STYO:LDY#0:STYG:STXI:STXL:.X:LDXI:LDAa%+256,X:STA_%+1:LDAa%,X:STA_%:INCI:LDAI:CMPO:BEQW:INC_%:BNEf:INC_%+1:.f:LDAN:STAJ:LDA#0:STAK:LDA(_%),Y:JSRM:BNEX:.l:INCG:LDXL
��LDA_%:STAa%,X:STAH:LDA_%+1:STAa%+256,X:STAH+1:INCL:JMPX:.W:PLA:STA_%+3:PLA:STA_%+2:PLA:STA_%+1:PLA:STA_%:RTS:.M:STAQ:LDAK:BEQg:LDAQ:LSRA:LSRA:BNEh:.g:LDA#1:.h:STAV:LDAJ:CMP#200:BCCi:LDA#200:.i:STAY:LDAV:CLC:ADCY:CMPQ:BEQZ:BCC_:LDAJ:SEC:SBCV:CMPQ
��BEQZ:BCS_:.Z:LDA#0:RTS:._:LDA#10:RTS:.m:.N EQUB255:.T EQUB255:.J EQUB255:.G EQUB0:.K EQUB0:.I EQUB0:.L EQUB0:.O EQUB0:.Y EQUB0:.H EQUW0:.V EQUB0:.Q EQUB0:]:�:�
���0:?N=k%:?T=j%:�n%:�
�'ݤ@:A%=1:Y%=&FF:=(�(&FFF4)�256)�256
���1:� ?G=1�9��A
��
���9:�g%=1g%=0
��b%h%=h%+1
��h%=2h%=0:b%=�
�=`= ?H+?(H+1)*256:p%=(`-c%+1)-`%:�(�(p%)>30�f%=�)b%=�:?G=0
��(�(p%)<10�f%=�)b%=�:?G=0
��b%`%=`%+1�f%=�:`%=`-c%+1
��
��A:`%=`%+1:�h%=1h%=0
�b%=��B
�
"$��B:g%=g%+1:�g%=1 ?G=1�g%=0:b%=�
,�
6���5:�X%,H$,T%:X%=�"CALVAL":�#X%,e%,i%:�#X%:�:�'"Calibration Values for this":�"machine are:":�'"offset  ";e%:�'"factor  ";i%:T%=�+200:�:��>T%:�
@��7:�A%,B%:�f%=��C(`%)
J3A%=�:B%=�:�31,11,11:�f%=��"Event ";`%:�31,A%,B%
T�(-106)�D
^�
h"��D:�(`%>55�`%<59)�E:�"RoboMC"
r�
|$��E:A%=1:Y%=0:X%=(`%�4):�&FFF4:�
����6:�F%:�:�'"You are now ready to use":�"Smart Video.":�'"Once running, you can initiate":�"a new search at any time by":�"pressing the space bar.":�'"Please start video player":�"and then press any key.":H$=�:�:�'"Initialising interface":F%=�+300:�
����>F%:�:l%=(�(1)-e%)�i%:�(l%�2)=0�l%<>0:�:�'"Finding place in the video":�=0:�:�@:�0:� ?G=1:�1:�:�'"Confirming place in the video":�
�D��@:�:�(-99)f%=�:?G=0:b%=�:�:�'"Finding new place in video":�30
�Ok%=(�(1)-e%)�i%:�((k%�2)=0�k%<>l%)��>1000:j%=(�*2)�25:�=0:l%=k%:�j%>o%j%=o%
��
���8:�(-35)m%=�
��`%>=u%m%=�
��
�=��3:�q%1024:r%=�:�("LOAD control "+�~(q%)):s%=�("foot"):�
�Q��C(w%):d%=q%-8:�:d%=d%+8:� !d%>w%� !d%=0:e%=!(d%-4):t%=!(d%-8):�t%<>r%�F(e%)
�r%=t%:�
���F(O%):�C%:� !(d%-4)=-1�:�
�*�#s%=O%:�:C%=�#s%:�C%<255�C%:�C%=13�10

�C%=255:�
$��2:�#0:�<>17�:�" at line ";�:�
=�"Press R to restart and X to exit and finish":�:*FX 15,1
&AG$=�:�G$="R"�G$="r"�G$="X"�G$="x":�G$="R"�G$="r"�("FX 1,0"):�
0�:�
�
00000000  0d 00 0a 1f f4 20 53 6d  61 72 74 20 56 69 64 65  |..... Smart Vide|
00000010  6f 20 46 69 6c 65 3a 20  53 6d 61 72 74 39 39 0d  |o File: Smart99.|
00000020  00 14 1e f4 20 54 68 69  73 20 69 73 20 74 68 65  |.... This is the|
00000030  20 6d 61 69 6e 20 70 72  6f 67 72 61 6d 0d 00 1e  | main program...|
00000040  11 f4 20 28 43 29 42 42  43 20 31 39 38 39 0d 00  |.. (C)BBC 1989..|
00000050  28 08 ee 85 f2 32 0d 00  32 6e d9 23 30 3a 75 25  |(....2..2n.#0:u%|
00000060  3d 36 30 30 3a 69 25 3d  38 30 30 3a 65 25 3d 30  |=600:i%=800:e%=0|
00000070  3a 62 25 3d b9 3a 66 25  3d a3 3a 6d 25 3d a3 3a  |:b%=.:f%=.:m%=.:|
00000080  6a 25 3d 30 3a 60 25 3d  a4 40 3a 67 25 3d 30 3a  |j%=0:`%=.@:g%=0:|
00000090  68 25 3d 30 3a ef 31 35  3a db 3a f2 33 3a f2 34  |h%=0:.15:.:.3:.4|
000000a0  3a f2 35 3a f2 36 3a f5  3a f2 40 3a f2 30 3a f2  |:.5:.6:.:.@:.0:.|
000000b0  31 3a f2 37 3a f2 38 3a  fd 6d 25 3d b9 3a 2a 43  |1:.7:.8:.m%=.:*C|
000000c0  4c 4f 53 45 0d 00 3c 08  eb 37 3a e0 0d 00 46 21  |LOSE..<..7:...F!|
000000d0  dd f2 34 3a 2a 4b 45 59  31 2a 43 4c 4f 53 45 7c  |..4:*KEY1*CLOSE||
000000e0  4d 4d 4f 2e 37 7c 4d 7c  4e 4c 2e 7c 4d 0d 00 50  |MMO.7|M|NL.|M..P|
000000f0  22 2a 4b 45 59 33 2a 43  4c 4f 53 45 7c 4d 4d 4f  |"*KEY3*CLOSE|MMO|
00000100  2e 37 7c 4d 7c 4e 4c 2e  33 38 39 30 2c 7c 4d 0d  |.7|M|NL.3890,|M.|
00000110  00 5a f8 de 6e 25 31 30  32 34 3a de 63 25 32 30  |.Z..n%1024:.c%20|
00000120  34 38 3a de 61 25 35 31  32 3a ff 28 22 4c 4f 41  |48:.a%512:.("LOA|
00000130  44 20 64 61 74 61 20 22  2b c3 7e 63 25 29 3a 5f  |D data "+.~c%):_|
00000140  25 3d 26 38 30 3a 6f 25  3d 32 30 30 3a e3 76 25  |%=&80:o%=200:.v%|
00000150  3d 30 b8 32 88 32 3a 50  25 3d 6e 25 3a 5b 4f 50  |=0.2.2:P%=n%:[OP|
00000160  54 76 25 3a 4c 44 41 5f  25 3a 50 48 41 3a 4c 44  |Tv%:LDA_%:PHA:LD|
00000170  41 5f 25 2b 31 3a 50 48  41 3a 4c 44 41 5f 25 2b  |A_%+1:PHA:LDA_%+|
00000180  32 3a 50 48 41 3a 4c 44  41 5f 25 2b 33 3a 50 48  |2:PHA:LDA_%+3:PH|
00000190  41 3a 4c 44 41 23 28 63  25 2b 31 30 32 34 29 81  |A:LDA#(c%+1024).|
000001a0  32 35 36 3a 53 54 41 5f  25 2b 33 3a 4c 44 41 23  |256:STA_%+3:LDA#|
000001b0  28 63 25 2b 31 30 32 34  29 83 32 35 36 3a 53 54  |(c%+1024).256:ST|
000001c0  41 5f 25 2b 32 3a 4c 44  41 23 63 25 81 32 35 36  |A_%+2:LDA#c%.256|
000001d0  3a 53 54 41 5f 25 2b 31  3a 4c 44 41 23 63 25 83  |:STA_%+1:LDA#c%.|
000001e0  32 35 36 3a 53 54 41 5f  25 3a 42 4e 45 61 3a 44  |256:STA_%:BNEa:D|
000001f0  45 43 5f 25 2b 31 3a 44  45 43 5f 25 2b 33 3a 2e  |EC_%+1:DEC_%+3:.|
00000200  61 3a 44 45 43 5f 25 0d  00 64 fc 44 45 43 5f 25  |a:DEC_%..d.DEC_%|
00000210  2b 32 3a 4c 44 58 23 30  3a 4c 44 59 23 30 3a 4c  |+2:LDX#0:LDY#0:L|
00000220  44 41 47 3a 42 4e 45 62  3a 2e 52 3a 49 4e 43 5f  |DAG:BNEb:.R:INC_|
00000230  25 3a 49 4e 43 5f 25 2b  32 3a 42 4e 45 63 3a 49  |%:INC_%+2:BNEc:I|
00000240  4e 43 5f 25 2b 31 3a 49  4e 43 5f 25 2b 33 3a 2e  |NC_%+1:INC_%+3:.|
00000250  63 3a 4c 44 41 4e 3a 53  54 41 4a 3a 4c 44 41 23  |c:LDAN:STAJ:LDA#|
00000260  30 3a 53 54 41 4b 3a 4c  44 41 28 5f 25 29 2c 59  |0:STAK:LDA(_%),Y|
00000270  3a 43 4d 50 23 32 35 35  3a 42 45 51 53 3a 4a 53  |:CMP#255:BEQS:JS|
00000280  52 4d 3a 42 4e 45 52 3a  4c 44 41 54 3a 53 54 41  |RM:BNER:LDAT:STA|
00000290  4a 3a 4c 44 41 23 26 46  46 3a 53 54 41 4b 3a 4c  |J:LDA#&FF:STAK:L|
000002a0  44 41 28 5f 25 2b 32 29  2c 59 3a 4a 53 52 4d 3a  |DA(_%+2),Y:JSRM:|
000002b0  42 4e 45 52 3a 2e 6a 3a  49 4e 43 47 3a 4c 44 41  |BNER:.j:INCG:LDA|
000002c0  5f 25 3a 53 54 41 61 25  2c 58 3a 53 54 41 48 3a  |_%:STAa%,X:STAH:|
000002d0  4c 44 41 5f 25 2b 31 3a  53 54 41 61 25 2b 32 35  |LDA_%+1:STAa%+25|
000002e0  36 2c 58 3a 53 54 41 48  2b 31 3a 49 4e 58 3a 4a  |6,X:STAH+1:INX:J|
000002f0  4d 50 52 3a 2e 53 3a 4a  4d 50 57 3a 2e 62 3a 4c  |MPR:.S:JMPW:.b:L|
00000300  44 59 47 0d 00 6e f9 42  45 51 53 3a 43 50 59 23  |DYG..n.BEQS:CPY#|
00000310  31 3a 42 45 51 64 3a 49  4e 59 3a 53 54 59 4f 3a  |1:BEQd:INY:STYO:|
00000320  4c 44 59 23 30 3a 53 54  59 47 3a 53 54 58 49 3a  |LDY#0:STYG:STXI:|
00000330  53 54 58 4c 3a 2e 55 3a  4c 44 58 49 3a 4c 44 41  |STXL:.U:LDXI:LDA|
00000340  61 25 2b 32 35 36 2c 58  3a 53 54 41 5f 25 2b 31  |a%+256,X:STA_%+1|
00000350  3a 4c 44 41 61 25 2c 58  3a 53 54 41 5f 25 3a 49  |:LDAa%,X:STA_%:I|
00000360  4e 43 49 3a 4c 44 41 49  3a 43 4d 50 4f 3a 42 45  |NCI:LDAI:CMPO:BE|
00000370  51 53 3a 49 4e 43 5f 25  3a 42 4e 45 65 3a 49 4e  |QS:INC_%:BNEe:IN|
00000380  43 5f 25 2b 31 3a 2e 65  3a 4c 44 41 5f 25 2b 31  |C_%+1:.e:LDA_%+1|
00000390  3a 43 4c 43 3a 41 44 43  23 34 3a 53 54 41 5f 25  |:CLC:ADC#4:STA_%|
000003a0  2b 33 3a 4c 44 41 5f 25  3a 53 54 41 5f 25 2b 32  |+3:LDA_%:STA_%+2|
000003b0  3a 4c 44 41 4e 3a 53 54  41 4a 3a 4c 44 41 23 30  |:LDAN:STAJ:LDA#0|
000003c0  3a 53 54 41 4b 3a 4c 44  41 28 5f 25 29 2c 59 3a  |:STAK:LDA(_%),Y:|
000003d0  4a 53 52 4d 3a 42 4e 45  55 3a 4c 44 41 23 26 46  |JSRM:BNEU:LDA#&F|
000003e0  46 3a 53 54 41 4b 3a 4c  44 41 54 3a 53 54 41 4a  |F:STAK:LDAT:STAJ|
000003f0  3a 4c 44 41 28 5f 25 2b  32 29 2c 59 0d 00 78 fd  |:LDA(_%+2),Y..x.|
00000400  4a 53 52 4d 3a 42 4e 45  55 3a 2e 6b 3a 49 4e 43  |JSRM:BNEU:.k:INC|
00000410  47 3a 4c 44 58 4c 3a 4c  44 41 5f 25 3a 53 54 41  |G:LDXL:LDA_%:STA|
00000420  61 25 2c 58 3a 53 54 41  48 3a 4c 44 41 5f 25 2b  |a%,X:STAH:LDA_%+|
00000430  31 3a 53 54 41 61 25 2b  32 35 36 2c 58 3a 53 54  |1:STAa%+256,X:ST|
00000440  41 48 2b 31 3a 49 4e 43  4c 3a 4a 4d 50 55 3a 2e  |AH+1:INCL:JMPU:.|
00000450  64 3a 49 4e 59 3a 53 54  59 4f 3a 4c 44 59 23 30  |d:INY:STYO:LDY#0|
00000460  3a 53 54 59 47 3a 53 54  58 49 3a 53 54 58 4c 3a  |:STYG:STXI:STXL:|
00000470  2e 58 3a 4c 44 58 49 3a  4c 44 41 61 25 2b 32 35  |.X:LDXI:LDAa%+25|
00000480  36 2c 58 3a 53 54 41 5f  25 2b 31 3a 4c 44 41 61  |6,X:STA_%+1:LDAa|
00000490  25 2c 58 3a 53 54 41 5f  25 3a 49 4e 43 49 3a 4c  |%,X:STA_%:INCI:L|
000004a0  44 41 49 3a 43 4d 50 4f  3a 42 45 51 57 3a 49 4e  |DAI:CMPO:BEQW:IN|
000004b0  43 5f 25 3a 42 4e 45 66  3a 49 4e 43 5f 25 2b 31  |C_%:BNEf:INC_%+1|
000004c0  3a 2e 66 3a 4c 44 41 4e  3a 53 54 41 4a 3a 4c 44  |:.f:LDAN:STAJ:LD|
000004d0  41 23 30 3a 53 54 41 4b  3a 4c 44 41 28 5f 25 29  |A#0:STAK:LDA(_%)|
000004e0  2c 59 3a 4a 53 52 4d 3a  42 4e 45 58 3a 2e 6c 3a  |,Y:JSRM:BNEX:.l:|
000004f0  49 4e 43 47 3a 4c 44 58  4c 0d 00 82 f9 4c 44 41  |INCG:LDXL....LDA|
00000500  5f 25 3a 53 54 41 61 25  2c 58 3a 53 54 41 48 3a  |_%:STAa%,X:STAH:|
00000510  4c 44 41 5f 25 2b 31 3a  53 54 41 61 25 2b 32 35  |LDA_%+1:STAa%+25|
00000520  36 2c 58 3a 53 54 41 48  2b 31 3a 49 4e 43 4c 3a  |6,X:STAH+1:INCL:|
00000530  4a 4d 50 58 3a 2e 57 3a  50 4c 41 3a 53 54 41 5f  |JMPX:.W:PLA:STA_|
00000540  25 2b 33 3a 50 4c 41 3a  53 54 41 5f 25 2b 32 3a  |%+3:PLA:STA_%+2:|
00000550  50 4c 41 3a 53 54 41 5f  25 2b 31 3a 50 4c 41 3a  |PLA:STA_%+1:PLA:|
00000560  53 54 41 5f 25 3a 52 54  53 3a 2e 4d 3a 53 54 41  |STA_%:RTS:.M:STA|
00000570  51 3a 4c 44 41 4b 3a 42  45 51 67 3a 4c 44 41 51  |Q:LDAK:BEQg:LDAQ|
00000580  3a 4c 53 52 41 3a 4c 53  52 41 3a 42 4e 45 68 3a  |:LSRA:LSRA:BNEh:|
00000590  2e 67 3a 4c 44 41 23 31  3a 2e 68 3a 53 54 41 56  |.g:LDA#1:.h:STAV|
000005a0  3a 4c 44 41 4a 3a 43 4d  50 23 32 30 30 3a 42 43  |:LDAJ:CMP#200:BC|
000005b0  43 69 3a 4c 44 41 23 32  30 30 3a 2e 69 3a 53 54  |Ci:LDA#200:.i:ST|
000005c0  41 59 3a 4c 44 41 56 3a  43 4c 43 3a 41 44 43 59  |AY:LDAV:CLC:ADCY|
000005d0  3a 43 4d 50 51 3a 42 45  51 5a 3a 42 43 43 5f 3a  |:CMPQ:BEQZ:BCC_:|
000005e0  4c 44 41 4a 3a 53 45 43  3a 53 42 43 56 3a 43 4d  |LDAJ:SEC:SBCV:CM|
000005f0  50 51 0d 00 8c a3 42 45  51 5a 3a 42 43 53 5f 3a  |PQ....BEQZ:BCS_:|
00000600  2e 5a 3a 4c 44 41 23 30  3a 52 54 53 3a 2e 5f 3a  |.Z:LDA#0:RTS:._:|
00000610  4c 44 41 23 31 30 3a 52  54 53 3a 2e 6d 3a 2e 4e  |LDA#10:RTS:.m:.N|
00000620  20 45 51 55 42 32 35 35  3a 2e 54 20 45 51 55 42  | EQUB255:.T EQUB|
00000630  32 35 35 3a 2e 4a 20 45  51 55 42 32 35 35 3a 2e  |255:.J EQUB255:.|
00000640  47 20 45 51 55 42 30 3a  2e 4b 20 45 51 55 42 30  |G EQUB0:.K EQUB0|
00000650  3a 2e 49 20 45 51 55 42  30 3a 2e 4c 20 45 51 55  |:.I EQUB0:.L EQU|
00000660  42 30 3a 2e 4f 20 45 51  55 42 30 3a 2e 59 20 45  |B0:.O EQUB0:.Y E|
00000670  51 55 42 30 3a 2e 48 20  45 51 55 57 30 3a 2e 56  |QUB0:.H EQUW0:.V|
00000680  20 45 51 55 42 30 3a 2e  51 20 45 51 55 42 30 3a  | EQUB0:.Q EQUB0:|
00000690  5d 3a ed 3a e1 0d 00 96  19 dd f2 30 3a 3f 4e 3d  |]:.:.......0:?N=|
000006a0  6b 25 3a 3f 54 3d 6a 25  3a d6 6e 25 3a e1 0d 00  |k%:?T=j%:.n%:...|
000006b0  a0 27 dd a4 40 3a 41 25  3d 31 3a 59 25 3d 26 46  |.'..@:A%=1:Y%=&F|
000006c0  46 3a 3d 28 ba 28 26 46  46 46 34 29 81 32 35 36  |F:=(.(&FFF4).256|
000006d0  29 83 32 35 36 0d 00 aa  13 dd f2 31 3a e7 20 3f  |).256......1:. ?|
000006e0  47 3d 31 f2 39 8b f2 41  0d 00 b4 05 e1 0d 00 be  |G=1.9..A........|
000006f0  11 dd f2 39 3a e7 67 25  3d 31 67 25 3d 30 0d 00  |...9:.g%=1g%=0..|
00000700  c8 0e e7 62 25 68 25 3d  68 25 2b 31 0d 00 d2 12  |...b%h%=h%+1....|
00000710  e7 68 25 3d 32 68 25 3d  30 3a 62 25 3d a3 0d 00  |.h%=2h%=0:b%=...|
00000720  dc 3d 60 3d 20 3f 48 2b  3f 28 48 2b 31 29 2a 32  |.=`= ?H+?(H+1)*2|
00000730  35 36 3a 70 25 3d 28 60  2d 63 25 2b 31 29 2d 60  |56:p%=(`-c%+1)-`|
00000740  25 3a e7 28 94 28 70 25  29 3e 33 30 80 66 25 3d  |%:.(.(p%)>30.f%=|
00000750  a3 29 62 25 3d b9 3a 3f  47 3d 30 0d 00 e6 1d e7  |.)b%=.:?G=0.....|
00000760  28 94 28 70 25 29 3c 31  30 80 66 25 3d b9 29 62  |(.(p%)<10.f%=.)b|
00000770  25 3d b9 3a 3f 47 3d 30  0d 00 f0 1d e7 62 25 60  |%=.:?G=0.....b%`|
00000780  25 3d 60 25 2b 31 8b 66  25 3d a3 3a 60 25 3d 60  |%=`%+1.f%=.:`%=`|
00000790  2d 63 25 2b 31 0d 00 fa  05 e1 0d 01 04 19 dd f2  |-c%+1...........|
000007a0  41 3a 60 25 3d 60 25 2b  31 3a e7 68 25 3d 31 68  |A:`%=`%+1:.h%=1h|
000007b0  25 3d 30 0d 01 0e 0b e7  62 25 3d a3 f2 42 0d 01  |%=0.....b%=..B..|
000007c0  18 05 e1 0d 01 22 24 dd  f2 42 3a 67 25 3d 67 25  |....."$..B:g%=g%|
000007d0  2b 31 3a e7 67 25 3d 31  20 3f 47 3d 31 8b 67 25  |+1:.g%=1 ?G=1.g%|
000007e0  3d 30 3a 62 25 3d b9 0d  01 2c 05 e1 0d 01 36 93  |=0:b%=...,....6.|
000007f0  dd f2 35 3a ea 58 25 2c  48 24 2c 54 25 3a 58 25  |..5:.X%,H$,T%:X%|
00000800  3d 8e 22 43 41 4c 56 41  4c 22 3a e8 23 58 25 2c  |=."CALVAL":.#X%,|
00000810  65 25 2c 69 25 3a d9 23  58 25 3a db 3a f1 27 22  |e%,i%:.#X%:.:.'"|
00000820  43 61 6c 69 62 72 61 74  69 6f 6e 20 56 61 6c 75  |Calibration Valu|
00000830  65 73 20 66 6f 72 20 74  68 69 73 22 3a f1 22 6d  |es for this":."m|
00000840  61 63 68 69 6e 65 20 61  72 65 3a 22 3a f1 27 22  |achine are:":.'"|
00000850  6f 66 66 73 65 74 20 20  22 3b 65 25 3a f1 27 22  |offset  ";e%:.'"|
00000860  66 61 63 74 6f 72 20 20  22 3b 69 25 3a 54 25 3d  |factor  ";i%:T%=|
00000870  91 2b 32 30 30 3a f5 3a  fd 91 3e 54 25 3a e1 0d  |.+200:.:..>T%:..|
00000880  01 40 1a dd f2 37 3a ea  41 25 2c 42 25 3a e7 66  |.@...7:.A%,B%:.f|
00000890  25 3d a3 f2 43 28 60 25  29 0d 01 4a 33 41 25 3d  |%=..C(`%)..J3A%=|
000008a0  b1 3a 42 25 3d bc 3a ef  33 31 2c 31 31 2c 31 31  |.:B%=.:.31,11,11|
000008b0  3a e7 66 25 3d a3 f1 22  45 76 65 6e 74 20 22 3b  |:.f%=.."Event ";|
000008c0  60 25 3a ef 33 31 2c 41  25 2c 42 25 0d 01 54 0e  |`%:.31,A%,B%..T.|
000008d0  e7 a6 28 2d 31 30 36 29  f2 44 0d 01 5e 05 e1 0d  |..(-106).D..^...|
000008e0  01 68 22 dd f2 44 3a e7  28 60 25 3e 35 35 80 60  |.h"..D:.(`%>55.`|
000008f0  25 3c 35 39 29 f2 45 3a  d7 22 52 6f 62 6f 4d 43  |%<59).E:."RoboMC|
00000900  22 0d 01 72 05 e1 0d 01  7c 24 dd f2 45 3a 41 25  |"..r....|$..E:A%|
00000910  3d 31 3a 59 25 3d 30 3a  58 25 3d 28 60 25 81 34  |=1:Y%=0:X%=(`%.4|
00000920  29 3a d6 26 46 46 46 34  3a e1 0d 01 86 fd dd f2  |):.&FFF4:.......|
00000930  36 3a ea 46 25 3a db 3a  f1 27 22 59 6f 75 20 61  |6:.F%:.:.'"You a|
00000940  72 65 20 6e 6f 77 20 72  65 61 64 79 20 74 6f 20  |re now ready to |
00000950  75 73 65 22 3a f1 22 53  6d 61 72 74 20 56 69 64  |use":."Smart Vid|
00000960  65 6f 2e 22 3a f1 27 22  4f 6e 63 65 20 72 75 6e  |eo.":.'"Once run|
00000970  6e 69 6e 67 2c 20 79 6f  75 20 63 61 6e 20 69 6e  |ning, you can in|
00000980  69 74 69 61 74 65 22 3a  f1 22 61 20 6e 65 77 20  |itiate":."a new |
00000990  73 65 61 72 63 68 20 61  74 20 61 6e 79 20 74 69  |search at any ti|
000009a0  6d 65 20 62 79 22 3a f1  22 70 72 65 73 73 69 6e  |me by":."pressin|
000009b0  67 20 74 68 65 20 73 70  61 63 65 20 62 61 72 2e  |g the space bar.|
000009c0  22 3a f1 27 22 50 6c 65  61 73 65 20 73 74 61 72  |":.'"Please star|
000009d0  74 20 76 69 64 65 6f 20  70 6c 61 79 65 72 22 3a  |t video player":|
000009e0  f1 22 61 6e 64 20 74 68  65 6e 20 70 72 65 73 73  |."and then press|
000009f0  20 61 6e 79 20 6b 65 79  2e 22 3a 48 24 3d be 3a  | any key.":H$=.:|
00000a00  db 3a f1 27 22 49 6e 69  74 69 61 6c 69 73 69 6e  |.:.'"Initialisin|
00000a10  67 20 69 6e 74 65 72 66  61 63 65 22 3a 46 25 3d  |g interface":F%=|
00000a20  91 2b 33 30 30 3a f5 0d  01 90 88 fd 91 3e 46 25  |.+300:.......>F%|
00000a30  3a f5 3a 6c 25 3d 28 96  28 31 29 2d 65 25 29 81  |:.:l%=(.(1)-e%).|
00000a40  69 25 3a fd 28 6c 25 83  32 29 3d 30 80 6c 25 3c  |i%:.(l%.2)=0.l%<|
00000a50  3e 30 3a db 3a f1 27 22  46 69 6e 64 69 6e 67 20  |>0:.:.'"Finding |
00000a60  70 6c 61 63 65 20 69 6e  20 74 68 65 20 76 69 64  |place in the vid|
00000a70  65 6f 22 3a d1 3d 30 3a  f5 3a f2 40 3a f2 30 3a  |eo":.=0:.:.@:.0:|
00000a80  fd 20 3f 47 3d 31 3a f2  31 3a db 3a f1 27 22 43  |. ?G=1:.1:.:.'"C|
00000a90  6f 6e 66 69 72 6d 69 6e  67 20 70 6c 61 63 65 20  |onfirming place |
00000aa0  69 6e 20 74 68 65 20 76  69 64 65 6f 22 3a e1 0d  |in the video":..|
00000ab0  01 9a 44 dd f2 40 3a f5  3a e7 a6 28 2d 39 39 29  |..D..@:.:..(-99)|
00000ac0  66 25 3d b9 3a 3f 47 3d  30 3a 62 25 3d b9 3a db  |f%=.:?G=0:b%=.:.|
00000ad0  3a f1 27 22 46 69 6e 64  69 6e 67 20 6e 65 77 20  |:.'"Finding new |
00000ae0  70 6c 61 63 65 20 69 6e  20 76 69 64 65 6f 22 3a  |place in video":|
00000af0  ef 33 30 0d 01 a4 4f 6b  25 3d 28 96 28 31 29 2d  |.30...Ok%=(.(1)-|
00000b00  65 25 29 81 69 25 3a fd  28 28 6b 25 83 32 29 3d  |e%).i%:.((k%.2)=|
00000b10  30 80 6b 25 3c 3e 6c 25  29 84 91 3e 31 30 30 30  |0.k%<>l%)..>1000|
00000b20  3a 6a 25 3d 28 91 2a 32  29 81 32 35 3a d1 3d 30  |:j%=(.*2).25:.=0|
00000b30  3a 6c 25 3d 6b 25 3a e7  6a 25 3e 6f 25 6a 25 3d  |:l%=k%:.j%>o%j%=|
00000b40  6f 25 0d 01 ae 05 e1 0d  01 b8 13 dd f2 38 3a e7  |o%...........8:.|
00000b50  a6 28 2d 33 35 29 6d 25  3d b9 0d 01 c2 0f e7 60  |.(-35)m%=......`|
00000b60  25 3e 3d 75 25 6d 25 3d  b9 0d 01 cc 05 e1 0d 01  |%>=u%m%=........|
00000b70  d6 3d dd f2 33 3a de 71  25 31 30 32 34 3a 72 25  |.=..3:.q%1024:r%|
00000b80  3d a3 3a ff 28 22 4c 4f  41 44 20 63 6f 6e 74 72  |=.:.("LOAD contr|
00000b90  6f 6c 20 22 2b c3 7e 28  71 25 29 29 3a 73 25 3d  |ol "+.~(q%)):s%=|
00000ba0  ad 28 22 66 6f 6f 74 22  29 3a e1 0d 01 e0 51 dd  |.("foot"):....Q.|
00000bb0  f2 43 28 77 25 29 3a 64  25 3d 71 25 2d 38 3a f5  |.C(w%):d%=q%-8:.|
00000bc0  3a 64 25 3d 64 25 2b 38  3a fd 20 21 64 25 3e 77  |:d%=d%+8:. !d%>w|
00000bd0  25 84 20 21 64 25 3d 30  3a 65 25 3d 21 28 64 25  |%. !d%=0:e%=!(d%|
00000be0  2d 34 29 3a 74 25 3d 21  28 64 25 2d 38 29 3a e7  |-4):t%=!(d%-8):.|
00000bf0  74 25 3c 3e 72 25 f2 46  28 65 25 29 0d 01 ea 0b  |t%<>r%.F(e%)....|
00000c00  72 25 3d 74 25 3a e1 0d  01 f4 1f dd f2 46 28 4f  |r%=t%:.......F(O|
00000c10  25 29 3a ea 43 25 3a e7  20 21 28 64 25 2d 34 29  |%):.C%:. !(d%-4)|
00000c20  3d 2d 31 db 3a e1 0d 01  fe 2a cf 23 73 25 3d 4f  |=-1.:....*.#s%=O|
00000c30  25 3a f5 3a 43 25 3d 9a  23 73 25 3a e7 43 25 3c  |%:.:C%=.#s%:.C%<|
00000c40  32 35 35 ef 43 25 3a e7  43 25 3d 31 33 ef 31 30  |255.C%:.C%=13.10|
00000c50  0d 02 08 0d fd 43 25 3d  32 35 35 3a e1 0d 02 12  |.....C%=255:....|
00000c60  24 dd f2 32 3a d9 23 30  3a e7 9f 3c 3e 31 37 f6  |$..2:.#0:..<>17.|
00000c70  3a f1 22 20 61 74 20 6c  69 6e 65 20 22 3b 9e 3a  |:." at line ";.:|
00000c80  e0 0d 02 1c 3d f1 22 50  72 65 73 73 20 52 20 74  |....=."Press R t|
00000c90  6f 20 72 65 73 74 61 72  74 20 61 6e 64 20 58 20  |o restart and X |
00000ca0  74 6f 20 65 78 69 74 20  61 6e 64 20 66 69 6e 69  |to exit and fini|
00000cb0  73 68 22 3a f5 3a 2a 46  58 20 31 35 2c 31 0d 02  |sh":.:*FX 15,1..|
00000cc0  26 41 47 24 3d be 3a fd  47 24 3d 22 52 22 84 47  |&AG$=.:.G$="R".G|
00000cd0  24 3d 22 72 22 84 47 24  3d 22 58 22 84 47 24 3d  |$="r".G$="X".G$=|
00000ce0  22 78 22 3a e7 47 24 3d  22 52 22 84 47 24 3d 22  |"x":.G$="R".G$="|
00000cf0  72 22 ff 28 22 46 58 20  31 2c 30 22 29 3a f9 0d  |r".("FX 1,0"):..|
00000d00  02 30 07 e0 3a e1 0d ff                           |.0..:...|
00000d08
03-06-89/Smart99.m0
03-06-89/Smart99.m1
03-06-89/Smart99.m2
03-06-89/Smart99.m4
03-06-89/Smart99.m5