Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape35b_acorn_eu_1992_june.wav » IR
IR
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 » Personal collection » Acorn tapes » Electron_User » Electron_User_tape35b_acorn_eu_1992_june.wav |
Filename: | IR |
Read OK: | ✔ |
File size: | 0FA9 bytes |
Load address: | FFFF1A00 |
Exec address: | FFFF8023 |
Duplicates
There are 2 duplicate copies of this file in the archive:
- AEW website » mu » mu_5_25_discs_Micro_User_10_04_D-MU10_04.ssd » IR
- Personal collection » Acorn tapes » Electron_User » Electron_User_tape35a_acorn_eu_1992_june.wav » IR
- Personal collection » Acorn tapes » Electron_User » Electron_User_tape35b_acorn_eu_1992_june.wav » IR
File contents
10REM > <BasicSave$Dir>.IR 20REM By Mike Cook 30MODE4 40PRINT"IR Remote control reader" 50NK%=19 : REM NUMBER OF KEYS 60NP%=13 : REM NUMBER OF PULSES 70NXK%=0:?&FE62=2 80A%=?&FE60 AND &FD 90NN%=(NP%*2)-1 100DIM CODE% 300,Time%(NK%,NN%),K$(NK%),KD$(NK%),TTime%(NN%) 110PROC_INIT 120REPEAT 130PROC_TITLE 140A$=GET$:PRINTA$ 150IF A$="N" OR A$="n" THEN PROC_GETK 160IF A$="U" OR A$="u" THEN PROC_KSEND 170IF A$="R" OR A$="r" THEN PROC_SHOW 180IF A$="S" OR A$="s" THEN PROC_SAVE 190IF A$="L" OR A$="l" THEN PROC_LOAD 200IF A$="Q" OR A$="q" THEN END 210UNTIL FALSE 220DEF PROC_TITLE 230CLS 240PRINTTAB(0,5)"IR Remote control reader" 250PRINT"By Mike Cook" 260PRINT:PRINT 270PRINT;NXK%;" Keys defined from a possible ";NK%+1 280PRINT:PRINT"N - New key defined" 290PRINT"U - Use keys to send IR" 300PRINT"S - Save timings to disc" 310PRINT"L - Load timings from disc" 320PRINT"R - Review defined keys" 330PRINT"Q - Quit" 340PRINT:PRINT 350PRINT"Select "; 360ENDPROC 370DEF PROC_SHOW 380PRINT"Computer keys used are :-" 390PROC_KLIST 400PRINT:PRINT"PRESS any key to continue" 410D$=GET$ 420ENDPROC 430DEF PROC_KSEND 440IF NXK%=0 THEN VDU 7:ENDPROC 450CLS:PRINTTAB(0,5)"Send IR Remote control commands":PRINT 460PRINT"Keys to use are :-" 470PROC_KLIST 480PRINT:PRINT"Control and Q to end" 490REPEAT 500E$=GET$ 510FOR B%=0 TO NXK%-1 520IF E$=K$(B%) THEN PROC_TX(B%) 530NEXT 540UNTIL E$=CHR$(17) 550ENDPROC 560DEF PROC_KLIST 570FOR A%= 0 TO NK% 580IF K$(A%)<>"" THEN PRINT;K$(A%);" - ";KD$(A%) 590NEXT 600ENDPROC 610DEF PROC_GETK 620IF NXK%>NK% THEN ENDPROC 630PRINT"Press the remote control button you want";:PRINT"to define "; 640PROC_READ 650PRINTTAB(0,20)"Press the computer key you want to";SPC(6); 660PRINT"associate with this button "; 670B$=GET$:PRINTB$ 680A%=-1 690REPEAT 700A%=A%+1 710UNTIL K$(A%)=B$ OR A%=NK% OR K$(A%)="" 720IF K$(A%)=B$ THEN PROC_CORA(A%) ELSE NXK%=NXK%+1:K$(A%)=B$:PROC_CHANGE(A%) 730INPUT"What lable for this key ",KD$(A%) 740ENDPROC 750DEF PROC_CORA(K%) 760LOCAL A% 770PRINT"Change definition or Average with existing C/A "; 780C$=GET$:PRINTC$ 790IF C$="C" OR C$="c" THEN PROC_CHANGE(K%):ENDPROC 800FOR A%=0 TO NN% 810Time%(K%,A%)=(TTime%(A%)+Time%(K%,A%))/2 820NEXT 830ENDPROC 840DEF PROC_CHANGE(K%) 850LOCAL A% 860FOR A%=0 TO NN% 870Time%(K%,A%)=TTime%(A%) 880NEXT 890ENDPROC 900DEF PROC_SAVE 910IF NXK%=0 THEN VDU 7:ENDPROC 920*CAT 930INPUT"File name for these keys ";F$ 940F%=OPENOUT(F$) 950PRINT# F%,NN%,NXK% 960FOR A%=0 TO NXK%-1 970PRINT# F%,K$(A%),KD$(A%) 980FOR B%=0 TO NN% 990PRINT# F%,Time%(A%,B%) 1000NEXT:NEXT 1010CLOSE#F% 1020ENDPROC 1030DEF PROC_LOAD 1040*CAT 1050INPUT"File name that holds your keys ";F$ 1060F%=OPENIN(F$) 1070INPUT#F%,X%,Y% 1080IF X%<>NN% OR Y%>NK% THEN PRINT"Incompatable file":CLOSE#F%:D$=GET$:ENDPROC 1090NXK%=Y% 1100FOR A%=0 TO Y%-1 1110INPUT# F%,K$(A%),KD$(A%) 1120FOR B%=0 TO NN% 1130INPUT# F%,Time%(A%,B%) 1140NEXT:NEXT 1150CLOSE#F% 1160ENDPROC 1170DEF PROC_TX(V%) 1180LOCAL A%,C% 1190A%=0 1200FOR C%=STORE TO STORE+NN%*2 STEP 2 1210C%?1=Time%(B%,A%) DIV 256 1220C%?0=Time%(B%,A%) AND 255 1230A%=A%+1 1240NEXT 1250FORZ%=0 TO 5 1260CALL TX 1270NEXT 1280ENDPROC 1290DEF PROC_READ 1300CALL IR 1310MOVE 0,150 1320S%=0:B%=0 1330FOR A%=STORE TO STORE+NN%*2 STEP 2 1340T%=&FFFF-(?A%+256*(?(A%+1))) 1350TTime%(B%)=T% 1360B%=B%+1 1370T%=T%/20 1380PLOT 1,T%,0 1390S%=S% EOR 1 1400IF S%=0 THEN PLOT 1,0,-50 ELSE PLOT 1,0,50 1410NEXT 1420ENDPROC 1430DEF PROC_INIT 1440FOR A%=0 TO 2 STEP 2 1450P%=CODE% 1460[ 1470OPT A% 1480.IR 1490SEI 1500LDA &FE6B \ TIMER CONTROL REG 1510AND #&3F:ORA #&40 1520STA &FE6B 1530.LP0 \ HOLD UNTIL IR SENSED 1540LDA &FE60:AND #&1 1550BNE LP0 1560LDX #&FE \ PLACE TO WRITE TIMING 1570LDY #NP% \ CYCLES TO READ 1580LDA #&FF \ SET UP T1 1590STA &FE66:STA &FE67 1600.CLP 1610JSR LP \ MEASURE ONE CYCLE 1620DEY 1630BNE CLP 1640CLI 1650RTS 1660.LP 1670INX:INX 1680LDA #&FF:STA &FE65 1690.LP1 1700LDA &FE60:AND #&1 1710BEQ LP1 1720LDA &FE64 \ GET LOW BYTE 1730STA STORE,X 1740LDA &FE65 \ HIGH BYTE 1750STA STORE+1,X 1760LDA #&FF 1770STA &FE65 \ RESET T1 1780INX:INX 1790.LP2 1800LDA &FE60:AND #&1 1810BNE LP2 1820LDA &FE64 \ GET LOW BYTE 1830STA STORE,X 1840LDA &FE65 \ HIGH BYTE 1850STA STORE+1,X 1860RTS 1870.TX \ SEND IR 1880SEI 1890LDA &FE6B:AND #&3F:STA &FE6B 1900LDA #&C0:STA &FE6E \ ENABLE T1 1910LDY #NP% \ CYCLES TO WRITE 1920LDX #&FE \ PLACE TO TAKE TIMING 1930.TLP 1940JSR TXI 1950DEY:BNE TLP 1960LDA #&40:STA &FE6E \ DISABLE T1 1970CLI:RTS 1980.TXI 1990INX:INX 2000LDA STORE,X 2010STA &FE64:STA &FE66 2020LDA STORE+1,X 2030STA &FE67:STA &FE65 2040LDA &FE60:ORA #2:STA &FE60 2050.HIL LDA &FE6D:BPL HIL 2060STA &FE6C REMOVE INTERRUPT 2070INX:INX 2080LDA STORE,X 2090STA &FE64:STA &FE66 2100LDA STORE+1,X 2110STA &FE67:STA &FE65 2120LDA &FE60:AND #&FD:STA &FE60 2130.LOP LDA &FE6D:BPL LOP 2140STA &FE6E 2150RTS 2160.STORE 2170] 2180NEXT 2190ENDPROC
� > <BasicSave$Dir>.IR � By Mike Cook �4 (�"IR Remote control reader" 2NK%=19 : � NUMBER OF KEYS <NP%=13 : � NUMBER OF PULSES FNXK%=0:?&FE62=2 PA%=?&FE60 � &FD ZNN%=(NP%*2)-1 d;� CODE% 300,Time%(NK%,NN%),K$(NK%),KD$(NK%),TTime%(NN%) n �_INIT x� ��_TITLE �A$=�:�A$ �� A$="N" � A$="n" � �_GETK �� A$="U" � A$="u" � �_KSEND �� A$="R" � A$="r" � �_SHOW �� A$="S" � A$="s" � �_SAVE �� A$="L" � A$="l" � �_LOAD �� A$="Q" � A$="q" � � �� � � � �_TITLE �� �$�0,5)"IR Remote control reader" ��"By Mike Cook" �:� 1�;NXK%;" Keys defined from a possible ";NK%+1 �:�"N - New key defined" "�"U - Use keys to send IR" ,�"S - Save timings to disc" 6!�"L - Load timings from disc" @�"R - Review defined keys" J�"Q - Quit" T�:� ^�"Select "; h� r� �_SHOW | �"Computer keys used are :-" ��_KLIST �"�:�"PRESS any key to continue" �D$=� �� � � �_KSEND �� NXK%=0 � � 7:� �/�:�0,5)"Send IR Remote control commands":� ��"Keys to use are :-" ��_KLIST ��:�"Control and Q to end" �� �E$=� �� B%=0 � NXK%-1 � E$=K$(B%) � �_TX(B%) � � E$=�(17) &� 0 � �_KLIST :� A%= 0 � NK% D)� K$(A%)<>"" � �;K$(A%);" - ";KD$(A%) N� X� b� �_GETK l� NXK%>NK% � � v?�"Press the remote control button you want";:�"to define "; � �_READ �5�0,20)"Press the computer key you want to";�(6); �#�"associate with this button "; �B$=�:�B$ � A%=-1 �� �A%=A%+1 �$� K$(A%)=B$ � A%=NK% � K$(A%)="" �A� K$(A%)=B$ � �_CORA(A%) � NXK%=NXK%+1:K$(A%)=B$:�_CHANGE(A%) �'�"What lable for this key ",KD$(A%) �� �� �_CORA(K%) �� A% 7�"Change definition or Average with existing C/A "; C$=�:�C$ &� C$="C" � C$="c" � �_CHANGE(K%):� � A%=0 � NN% *,Time%(K%,A%)=(TTime%(A%)+Time%(K%,A%))/2 4� >� H� �_CHANGE(K%) R� A% \� A%=0 � NN% fTime%(K%,A%)=TTime%(A%) p� z� �� �_SAVE �� NXK%=0 � � 7:� �*CAT �#�"File name for these keys ";F$ �F%=�(F$) ��# F%,NN%,NXK% �� A%=0 � NXK%-1 ��# F%,K$(A%),KD$(A%) �� B%=0 � NN% ��# F%,Time%(A%,B%) ��:� ��#F% �� � �_LOAD *CAT )�"File name that holds your keys ";F$ $F%=�(F$) .�#F%,X%,Y% 89� X%<>NN% � Y%>NK% � �"Incompatable file":�#F%:D$=�:� BNXK%=Y% L� A%=0 � Y%-1 V�# F%,K$(A%),KD$(A%) `� B%=0 � NN% j�# F%,Time%(A%,B%) t�:� ~�#F% �� �� �_TX(V%) �� A%,C% �A%=0 � � C%=STORE � STORE+NN%*2 � 2 �C%?1=Time%(B%,A%) � 256 �C%?0=Time%(B%,A%) � 255 �A%=A%+1 �� � �Z%=0 � 5 �� TX �� � � �_READ � IR � 0,150 ( S%=0:B%=0 2 � A%=STORE � STORE+NN%*2 � 2 < T%=&FFFF-(?A%+256*(?(A%+1))) FTTime%(B%)=T% PB%=B%+1 ZT%=T%/20 d� 1,T%,0 n S%=S% � 1 x!� S%=0 � � 1,0,-50 � � 1,0,50 �� �� �� �_INIT �� A%=0 � 2 � 2 �P%=CODE% �[ � OPT A% �.IR �SEI �!LDA &FE6B \ TIMER CONTROL REG �� #&3F:�A #&40 � STA &FE6B �.LP0 \ HOLD � IR SENSED LDA &FE60:� #&1 BNE LP0 #LDX #&FE \ PLACE � WRITE TIMING "LDY #NP% \ CYCLES � � ,LDA #&FF \ SET UP T1 6STA &FE66:STA &FE67 @.CLP JJSR LP \ MEASURE �E CYCLE TDEY ^BNE CLP hCLI rRTS |.LP �INX:INX �LDA #&FF:STA &FE65 �.LP1 �LDA &FE60:� #&1 �BEQ LP1 �LDA &FE64 \ � LOW BYTE �STA STORE,X �LDA &FE65 \ HIGH BYTE �STA STORE+1,X �LDA #&FF �STA &FE65 \ RESET T1 �INX:INX �.LP2 LDA &FE60:� #&1 BNE LP2 LDA &FE64 \ � LOW BYTE &STA STORE,X 0LDA &FE65 \ HIGH BYTE :STA STORE+1,X DRTS N.TX \ SEND IR XSEI bLDA &FE6B:� #&3F:STA &FE6B l"LDA #&C0:STA &FE6E \ ENABLE T1 vLDY #NP% \ CYCLES � WRITE �"LDX #&FE \ PLACE � TAKE TIMING �.TLP �JSR TXI �DEY:BNE TLP �#LDA #&40:STA &FE6E \ DISABLE T1 �CLI:RTS �.TXI �INX:INX �LDA STORE,X �STA &FE64:STA &FE66 �LDA STORE+1,X �STA &FE67:STA &FE65 �LDA &FE60:�A #2:STA &FE60 .HIL LDA &FE6D:BPL HIL STA &FE6C �OVE INTERRUPT INX:INX LDA STORE,X *STA &FE64:STA &FE66 4LDA STORE+1,X >STA &FE67:STA &FE65 HLDA &FE60:� #&FD:STA &FE60 R.LOP LDA &FE6D:BPL LOP \ STA &FE6E fRTS p .STORE z] �� �� �
00000000 0d 00 0a 1a f4 20 3e 20 3c 42 61 73 69 63 53 61 |..... > <BasicSa| 00000010 76 65 24 44 69 72 3e 2e 49 52 0d 00 14 12 f4 20 |ve$Dir>.IR..... | 00000020 42 79 20 4d 69 6b 65 20 43 6f 6f 6b 0d 00 1e 06 |By Mike Cook....| 00000030 eb 34 0d 00 28 1f f1 22 49 52 20 52 65 6d 6f 74 |.4..(.."IR Remot| 00000040 65 20 63 6f 6e 74 72 6f 6c 20 72 65 61 64 65 72 |e control reader| 00000050 22 0d 00 32 1d 4e 4b 25 3d 31 39 20 3a 20 f4 20 |"..2.NK%=19 : . | 00000060 4e 55 4d 42 45 52 20 4f 46 20 4b 45 59 53 0d 00 |NUMBER OF KEYS..| 00000070 3c 1f 4e 50 25 3d 31 33 20 3a 20 f4 20 4e 55 4d |<.NP%=13 : . NUM| 00000080 42 45 52 20 4f 46 20 50 55 4c 53 45 53 0d 00 46 |BER OF PULSES..F| 00000090 13 4e 58 4b 25 3d 30 3a 3f 26 46 45 36 32 3d 32 |.NXK%=0:?&FE62=2| 000000a0 0d 00 50 13 41 25 3d 3f 26 46 45 36 30 20 80 20 |..P.A%=?&FE60 . | 000000b0 26 46 44 0d 00 5a 11 4e 4e 25 3d 28 4e 50 25 2a |&FD..Z.NN%=(NP%*| 000000c0 32 29 2d 31 0d 00 64 3b de 20 43 4f 44 45 25 20 |2)-1..d;. CODE% | 000000d0 33 30 30 2c 54 69 6d 65 25 28 4e 4b 25 2c 4e 4e |300,Time%(NK%,NN| 000000e0 25 29 2c 4b 24 28 4e 4b 25 29 2c 4b 44 24 28 4e |%),K$(NK%),KD$(N| 000000f0 4b 25 29 2c 54 54 69 6d 65 25 28 4e 4e 25 29 0d |K%),TTime%(NN%).| 00000100 00 6e 0a f2 5f 49 4e 49 54 0d 00 78 05 f5 0d 00 |.n.._INIT..x....| 00000110 82 0b f2 5f 54 49 54 4c 45 0d 00 8c 0c 41 24 3d |..._TITLE....A$=| 00000120 be 3a f1 41 24 0d 00 96 1e e7 20 41 24 3d 22 4e |.:.A$..... A$="N| 00000130 22 20 84 20 41 24 3d 22 6e 22 20 8c 20 f2 5f 47 |" . A$="n" . ._G| 00000140 45 54 4b 0d 00 a0 1f e7 20 41 24 3d 22 55 22 20 |ETK..... A$="U" | 00000150 84 20 41 24 3d 22 75 22 20 8c 20 f2 5f 4b 53 45 |. A$="u" . ._KSE| 00000160 4e 44 0d 00 aa 1e e7 20 41 24 3d 22 52 22 20 84 |ND..... A$="R" .| 00000170 20 41 24 3d 22 72 22 20 8c 20 f2 5f 53 48 4f 57 | A$="r" . ._SHOW| 00000180 0d 00 b4 1e e7 20 41 24 3d 22 53 22 20 84 20 41 |..... A$="S" . A| 00000190 24 3d 22 73 22 20 8c 20 f2 5f 53 41 56 45 0d 00 |$="s" . ._SAVE..| 000001a0 be 1e e7 20 41 24 3d 22 4c 22 20 84 20 41 24 3d |... A$="L" . A$=| 000001b0 22 6c 22 20 8c 20 f2 5f 4c 4f 41 44 0d 00 c8 19 |"l" . ._LOAD....| 000001c0 e7 20 41 24 3d 22 51 22 20 84 20 41 24 3d 22 71 |. A$="Q" . A$="q| 000001d0 22 20 8c 20 e0 0d 00 d2 07 fd 20 a3 0d 00 dc 0d |" . ...... .....| 000001e0 dd 20 f2 5f 54 49 54 4c 45 0d 00 e6 05 db 0d 00 |. ._TITLE.......| 000001f0 f0 24 f1 8a 30 2c 35 29 22 49 52 20 52 65 6d 6f |.$..0,5)"IR Remo| 00000200 74 65 20 63 6f 6e 74 72 6f 6c 20 72 65 61 64 65 |te control reade| 00000210 72 22 0d 00 fa 13 f1 22 42 79 20 4d 69 6b 65 20 |r"....."By Mike | 00000220 43 6f 6f 6b 22 0d 01 04 07 f1 3a f1 0d 01 0e 31 |Cook".....:....1| 00000230 f1 3b 4e 58 4b 25 3b 22 20 4b 65 79 73 20 64 65 |.;NXK%;" Keys de| 00000240 66 69 6e 65 64 20 66 72 6f 6d 20 61 20 70 6f 73 |fined from a pos| 00000250 73 69 62 6c 65 20 22 3b 4e 4b 25 2b 31 0d 01 18 |sible ";NK%+1...| 00000260 1c f1 3a f1 22 4e 20 2d 20 4e 65 77 20 6b 65 79 |..:."N - New key| 00000270 20 64 65 66 69 6e 65 64 22 0d 01 22 1e f1 22 55 | defined"..".."U| 00000280 20 2d 20 55 73 65 20 6b 65 79 73 20 74 6f 20 73 | - Use keys to s| 00000290 65 6e 64 20 49 52 22 0d 01 2c 1f f1 22 53 20 2d |end IR"..,.."S -| 000002a0 20 53 61 76 65 20 74 69 6d 69 6e 67 73 20 74 6f | Save timings to| 000002b0 20 64 69 73 63 22 0d 01 36 21 f1 22 4c 20 2d 20 | disc"..6!."L - | 000002c0 4c 6f 61 64 20 74 69 6d 69 6e 67 73 20 66 72 6f |Load timings fro| 000002d0 6d 20 64 69 73 63 22 0d 01 40 1e f1 22 52 20 2d |m disc"..@.."R -| 000002e0 20 52 65 76 69 65 77 20 64 65 66 69 6e 65 64 20 | Review defined | 000002f0 6b 65 79 73 22 0d 01 4a 0f f1 22 51 20 2d 20 51 |keys"..J.."Q - Q| 00000300 75 69 74 22 0d 01 54 07 f1 3a f1 0d 01 5e 0f f1 |uit"..T..:...^..| 00000310 22 53 65 6c 65 63 74 20 22 3b 0d 01 68 05 e1 0d |"Select ";..h...| 00000320 01 72 0c dd 20 f2 5f 53 48 4f 57 0d 01 7c 20 f1 |.r.. ._SHOW..| .| 00000330 22 43 6f 6d 70 75 74 65 72 20 6b 65 79 73 20 75 |"Computer keys u| 00000340 73 65 64 20 61 72 65 20 3a 2d 22 0d 01 86 0b f2 |sed are :-".....| 00000350 5f 4b 4c 49 53 54 0d 01 90 22 f1 3a f1 22 50 52 |_KLIST...".:."PR| 00000360 45 53 53 20 61 6e 79 20 6b 65 79 20 74 6f 20 63 |ESS any key to c| 00000370 6f 6e 74 69 6e 75 65 22 0d 01 9a 08 44 24 3d be |ontinue"....D$=.| 00000380 0d 01 a4 05 e1 0d 01 ae 0d dd 20 f2 5f 4b 53 45 |.......... ._KSE| 00000390 4e 44 0d 01 b8 14 e7 20 4e 58 4b 25 3d 30 20 8c |ND..... NXK%=0 .| 000003a0 20 ef 20 37 3a e1 0d 01 c2 2f db 3a f1 8a 30 2c | . 7:..../.:..0,| 000003b0 35 29 22 53 65 6e 64 20 49 52 20 52 65 6d 6f 74 |5)"Send IR Remot| 000003c0 65 20 63 6f 6e 74 72 6f 6c 20 63 6f 6d 6d 61 6e |e control comman| 000003d0 64 73 22 3a f1 0d 01 cc 19 f1 22 4b 65 79 73 20 |ds":......"Keys | 000003e0 74 6f 20 75 73 65 20 61 72 65 20 3a 2d 22 0d 01 |to use are :-"..| 000003f0 d6 0b f2 5f 4b 4c 49 53 54 0d 01 e0 1d f1 3a f1 |..._KLIST.....:.| 00000400 22 43 6f 6e 74 72 6f 6c 20 61 6e 64 20 51 20 74 |"Control and Q t| 00000410 6f 20 65 6e 64 22 0d 01 ea 05 f5 0d 01 f4 08 45 |o end".........E| 00000420 24 3d be 0d 01 fe 13 e3 20 42 25 3d 30 20 b8 20 |$=...... B%=0 . | 00000430 4e 58 4b 25 2d 31 0d 02 08 1a e7 20 45 24 3d 4b |NXK%-1..... E$=K| 00000440 24 28 42 25 29 20 8c 20 f2 5f 54 58 28 42 25 29 |$(B%) . ._TX(B%)| 00000450 0d 02 12 05 ed 0d 02 1c 0e fd 20 45 24 3d bd 28 |.......... E$=.(| 00000460 31 37 29 0d 02 26 05 e1 0d 02 30 0d dd 20 f2 5f |17)..&....0.. ._| 00000470 4b 4c 49 53 54 0d 02 3a 11 e3 20 41 25 3d 20 30 |KLIST..:.. A%= 0| 00000480 20 b8 20 4e 4b 25 0d 02 44 29 e7 20 4b 24 28 41 | . NK%..D). K$(A| 00000490 25 29 3c 3e 22 22 20 8c 20 f1 3b 4b 24 28 41 25 |%)<>"" . .;K$(A%| 000004a0 29 3b 22 20 2d 20 22 3b 4b 44 24 28 41 25 29 0d |);" - ";KD$(A%).| 000004b0 02 4e 05 ed 0d 02 58 05 e1 0d 02 62 0c dd 20 f2 |.N....X....b.. .| 000004c0 5f 47 45 54 4b 0d 02 6c 12 e7 20 4e 58 4b 25 3e |_GETK..l.. NXK%>| 000004d0 4e 4b 25 20 8c 20 e1 0d 02 76 3f f1 22 50 72 65 |NK% . ...v?."Pre| 000004e0 73 73 20 74 68 65 20 72 65 6d 6f 74 65 20 63 6f |ss the remote co| 000004f0 6e 74 72 6f 6c 20 62 75 74 74 6f 6e 20 79 6f 75 |ntrol button you| 00000500 20 77 61 6e 74 22 3b 3a f1 22 74 6f 20 64 65 66 | want";:."to def| 00000510 69 6e 65 20 22 3b 0d 02 80 0a f2 5f 52 45 41 44 |ine ";....._READ| 00000520 0d 02 8a 35 f1 8a 30 2c 32 30 29 22 50 72 65 73 |...5..0,20)"Pres| 00000530 73 20 74 68 65 20 63 6f 6d 70 75 74 65 72 20 6b |s the computer k| 00000540 65 79 20 79 6f 75 20 77 61 6e 74 20 74 6f 22 3b |ey you want to";| 00000550 89 28 36 29 3b 0d 02 94 23 f1 22 61 73 73 6f 63 |.(6);...#."assoc| 00000560 69 61 74 65 20 77 69 74 68 20 74 68 69 73 20 62 |iate with this b| 00000570 75 74 74 6f 6e 20 22 3b 0d 02 9e 0c 42 24 3d be |utton ";....B$=.| 00000580 3a f1 42 24 0d 02 a8 09 41 25 3d 2d 31 0d 02 b2 |:.B$....A%=-1...| 00000590 05 f5 0d 02 bc 0b 41 25 3d 41 25 2b 31 0d 02 c6 |......A%=A%+1...| 000005a0 24 fd 20 4b 24 28 41 25 29 3d 42 24 20 84 20 41 |$. K$(A%)=B$ . A| 000005b0 25 3d 4e 4b 25 20 84 20 4b 24 28 41 25 29 3d 22 |%=NK% . K$(A%)="| 000005c0 22 0d 02 d0 41 e7 20 4b 24 28 41 25 29 3d 42 24 |"...A. K$(A%)=B$| 000005d0 20 8c 20 f2 5f 43 4f 52 41 28 41 25 29 20 8b 20 | . ._CORA(A%) . | 000005e0 4e 58 4b 25 3d 4e 58 4b 25 2b 31 3a 4b 24 28 41 |NXK%=NXK%+1:K$(A| 000005f0 25 29 3d 42 24 3a f2 5f 43 48 41 4e 47 45 28 41 |%)=B$:._CHANGE(A| 00000600 25 29 0d 02 da 27 e8 22 57 68 61 74 20 6c 61 62 |%)...'."What lab| 00000610 6c 65 20 66 6f 72 20 74 68 69 73 20 6b 65 79 20 |le for this key | 00000620 22 2c 4b 44 24 28 41 25 29 0d 02 e4 05 e1 0d 02 |",KD$(A%).......| 00000630 ee 10 dd 20 f2 5f 43 4f 52 41 28 4b 25 29 0d 02 |... ._CORA(K%)..| 00000640 f8 08 ea 20 41 25 0d 03 02 37 f1 22 43 68 61 6e |... A%...7."Chan| 00000650 67 65 20 64 65 66 69 6e 69 74 69 6f 6e 20 6f 72 |ge definition or| 00000660 20 41 76 65 72 61 67 65 20 77 69 74 68 20 65 78 | Average with ex| 00000670 69 73 74 69 6e 67 20 43 2f 41 20 22 3b 0d 03 0c |isting C/A ";...| 00000680 0c 43 24 3d be 3a f1 43 24 0d 03 16 26 e7 20 43 |.C$=.:.C$...&. C| 00000690 24 3d 22 43 22 20 84 20 43 24 3d 22 63 22 20 8c |$="C" . C$="c" .| 000006a0 20 f2 5f 43 48 41 4e 47 45 28 4b 25 29 3a e1 0d | ._CHANGE(K%):..| 000006b0 03 20 10 e3 20 41 25 3d 30 20 b8 20 4e 4e 25 0d |. .. A%=0 . NN%.| 000006c0 03 2a 2c 54 69 6d 65 25 28 4b 25 2c 41 25 29 3d |.*,Time%(K%,A%)=| 000006d0 28 54 54 69 6d 65 25 28 41 25 29 2b 54 69 6d 65 |(TTime%(A%)+Time| 000006e0 25 28 4b 25 2c 41 25 29 29 2f 32 0d 03 34 05 ed |%(K%,A%))/2..4..| 000006f0 0d 03 3e 05 e1 0d 03 48 12 dd 20 f2 5f 43 48 41 |..>....H.. ._CHA| 00000700 4e 47 45 28 4b 25 29 0d 03 52 08 ea 20 41 25 0d |NGE(K%)..R.. A%.| 00000710 03 5c 10 e3 20 41 25 3d 30 20 b8 20 4e 4e 25 0d |.\.. A%=0 . NN%.| 00000720 03 66 1b 54 69 6d 65 25 28 4b 25 2c 41 25 29 3d |.f.Time%(K%,A%)=| 00000730 54 54 69 6d 65 25 28 41 25 29 0d 03 70 05 ed 0d |TTime%(A%)..p...| 00000740 03 7a 05 e1 0d 03 84 0c dd 20 f2 5f 53 41 56 45 |.z....... ._SAVE| 00000750 0d 03 8e 14 e7 20 4e 58 4b 25 3d 30 20 8c 20 ef |..... NXK%=0 . .| 00000760 20 37 3a e1 0d 03 98 08 2a 43 41 54 0d 03 a2 23 | 7:.....*CAT...#| 00000770 e8 22 46 69 6c 65 20 6e 61 6d 65 20 66 6f 72 20 |."File name for | 00000780 74 68 65 73 65 20 6b 65 79 73 20 22 3b 46 24 0d |these keys ";F$.| 00000790 03 ac 0c 46 25 3d ae 28 46 24 29 0d 03 b6 12 f1 |...F%=.(F$).....| 000007a0 23 20 46 25 2c 4e 4e 25 2c 4e 58 4b 25 0d 03 c0 |# F%,NN%,NXK%...| 000007b0 13 e3 20 41 25 3d 30 20 b8 20 4e 58 4b 25 2d 31 |.. A%=0 . NXK%-1| 000007c0 0d 03 ca 18 f1 23 20 46 25 2c 4b 24 28 41 25 29 |.....# F%,K$(A%)| 000007d0 2c 4b 44 24 28 41 25 29 0d 03 d4 10 e3 20 42 25 |,KD$(A%)..... B%| 000007e0 3d 30 20 b8 20 4e 4e 25 0d 03 de 16 f1 23 20 46 |=0 . NN%.....# F| 000007f0 25 2c 54 69 6d 65 25 28 41 25 2c 42 25 29 0d 03 |%,Time%(A%,B%)..| 00000800 e8 07 ed 3a ed 0d 03 f2 08 d9 23 46 25 0d 03 fc |...:......#F%...| 00000810 05 e1 0d 04 06 0c dd 20 f2 5f 4c 4f 41 44 0d 04 |....... ._LOAD..| 00000820 10 08 2a 43 41 54 0d 04 1a 29 e8 22 46 69 6c 65 |..*CAT...)."File| 00000830 20 6e 61 6d 65 20 74 68 61 74 20 68 6f 6c 64 73 | name that holds| 00000840 20 79 6f 75 72 20 6b 65 79 73 20 22 3b 46 24 0d | your keys ";F$.| 00000850 04 24 0c 46 25 3d 8e 28 46 24 29 0d 04 2e 0e e8 |.$.F%=.(F$).....| 00000860 23 46 25 2c 58 25 2c 59 25 0d 04 38 39 e7 20 58 |#F%,X%,Y%..89. X| 00000870 25 3c 3e 4e 4e 25 20 84 20 59 25 3e 4e 4b 25 20 |%<>NN% . Y%>NK% | 00000880 8c 20 f1 22 49 6e 63 6f 6d 70 61 74 61 62 6c 65 |. ."Incompatable| 00000890 20 66 69 6c 65 22 3a d9 23 46 25 3a 44 24 3d be | file":.#F%:D$=.| 000008a0 3a e1 0d 04 42 0b 4e 58 4b 25 3d 59 25 0d 04 4c |:...B.NXK%=Y%..L| 000008b0 11 e3 20 41 25 3d 30 20 b8 20 59 25 2d 31 0d 04 |.. A%=0 . Y%-1..| 000008c0 56 18 e8 23 20 46 25 2c 4b 24 28 41 25 29 2c 4b |V..# F%,K$(A%),K| 000008d0 44 24 28 41 25 29 0d 04 60 10 e3 20 42 25 3d 30 |D$(A%)..`.. B%=0| 000008e0 20 b8 20 4e 4e 25 0d 04 6a 16 e8 23 20 46 25 2c | . NN%..j..# F%,| 000008f0 54 69 6d 65 25 28 41 25 2c 42 25 29 0d 04 74 07 |Time%(A%,B%)..t.| 00000900 ed 3a ed 0d 04 7e 08 d9 23 46 25 0d 04 88 05 e1 |.:...~..#F%.....| 00000910 0d 04 92 0e dd 20 f2 5f 54 58 28 56 25 29 0d 04 |..... ._TX(V%)..| 00000920 9c 0b ea 20 41 25 2c 43 25 0d 04 a6 08 41 25 3d |... A%,C%....A%=| 00000930 30 0d 04 b0 20 e3 20 43 25 3d 53 54 4f 52 45 20 |0... . C%=STORE | 00000940 b8 20 53 54 4f 52 45 2b 4e 4e 25 2a 32 20 88 20 |. STORE+NN%*2 . | 00000950 32 0d 04 ba 1b 43 25 3f 31 3d 54 69 6d 65 25 28 |2....C%?1=Time%(| 00000960 42 25 2c 41 25 29 20 81 20 32 35 36 0d 04 c4 1b |B%,A%) . 256....| 00000970 43 25 3f 30 3d 54 69 6d 65 25 28 42 25 2c 41 25 |C%?0=Time%(B%,A%| 00000980 29 20 80 20 32 35 35 0d 04 ce 0b 41 25 3d 41 25 |) . 255....A%=A%| 00000990 2b 31 0d 04 d8 05 ed 0d 04 e2 0d e3 5a 25 3d 30 |+1..........Z%=0| 000009a0 20 b8 20 35 0d 04 ec 08 d6 20 54 58 0d 04 f6 05 | . 5..... TX....| 000009b0 ed 0d 05 00 05 e1 0d 05 0a 0c dd 20 f2 5f 52 45 |........... ._RE| 000009c0 41 44 0d 05 14 08 d6 20 49 52 0d 05 1e 0b ec 20 |AD..... IR..... | 000009d0 30 2c 31 35 30 0d 05 28 0d 53 25 3d 30 3a 42 25 |0,150..(.S%=0:B%| 000009e0 3d 30 0d 05 32 20 e3 20 41 25 3d 53 54 4f 52 45 |=0..2 . A%=STORE| 000009f0 20 b8 20 53 54 4f 52 45 2b 4e 4e 25 2a 32 20 88 | . STORE+NN%*2 .| 00000a00 20 32 0d 05 3c 20 54 25 3d 26 46 46 46 46 2d 28 | 2..< T%=&FFFF-(| 00000a10 3f 41 25 2b 32 35 36 2a 28 3f 28 41 25 2b 31 29 |?A%+256*(?(A%+1)| 00000a20 29 29 0d 05 46 11 54 54 69 6d 65 25 28 42 25 29 |))..F.TTime%(B%)| 00000a30 3d 54 25 0d 05 50 0b 42 25 3d 42 25 2b 31 0d 05 |=T%..P.B%=B%+1..| 00000a40 5a 0c 54 25 3d 54 25 2f 32 30 0d 05 64 0c f0 20 |Z.T%=T%/20..d.. | 00000a50 31 2c 54 25 2c 30 0d 05 6e 0d 53 25 3d 53 25 20 |1,T%,0..n.S%=S% | 00000a60 82 20 31 0d 05 78 21 e7 20 53 25 3d 30 20 8c 20 |. 1..x!. S%=0 . | 00000a70 f0 20 31 2c 30 2c 2d 35 30 20 8b 20 f0 20 31 2c |. 1,0,-50 . . 1,| 00000a80 30 2c 35 30 0d 05 82 05 ed 0d 05 8c 05 e1 0d 05 |0,50............| 00000a90 96 0c dd 20 f2 5f 49 4e 49 54 0d 05 a0 12 e3 20 |... ._INIT..... | 00000aa0 41 25 3d 30 20 b8 20 32 20 88 20 32 0d 05 aa 0c |A%=0 . 2 . 2....| 00000ab0 50 25 3d 43 4f 44 45 25 0d 05 b4 05 5b 0d 05 be |P%=CODE%....[...| 00000ac0 0a 4f 50 54 20 41 25 0d 05 c8 07 2e 49 52 0d 05 |.OPT A%.....IR..| 00000ad0 d2 07 53 45 49 0d 05 dc 21 4c 44 41 20 26 46 45 |..SEI...!LDA &FE| 00000ae0 36 42 20 5c 20 54 49 4d 45 52 20 43 4f 4e 54 52 |6B \ TIMER CONTR| 00000af0 4f 4c 20 52 45 47 0d 05 e6 12 80 20 23 26 33 46 |OL REG..... #&3F| 00000b00 3a 84 41 20 23 26 34 30 0d 05 f0 0d 53 54 41 20 |:.A #&40....STA | 00000b10 26 46 45 36 42 0d 05 fa 1b 2e 4c 50 30 20 5c 20 |&FE6B.....LP0 \ | 00000b20 48 4f 4c 44 20 fd 20 49 52 20 53 45 4e 53 45 44 |HOLD . IR SENSED| 00000b30 0d 06 04 13 4c 44 41 20 26 46 45 36 30 3a 80 20 |....LDA &FE60:. | 00000b40 23 26 31 0d 06 0e 0b 42 4e 45 20 4c 50 30 0d 06 |#&1....BNE LP0..| 00000b50 18 23 4c 44 58 20 23 26 46 45 20 5c 20 50 4c 41 |.#LDX #&FE \ PLA| 00000b60 43 45 20 b8 20 57 52 49 54 45 20 54 49 4d 49 4e |CE . WRITE TIMIN| 00000b70 47 0d 06 22 19 4c 44 59 20 23 4e 50 25 20 5c 20 |G..".LDY #NP% \ | 00000b80 43 59 43 4c 45 53 20 b8 20 f3 0d 06 2c 18 4c 44 |CYCLES . ...,.LD| 00000b90 41 20 23 26 46 46 20 5c 20 53 45 54 20 55 50 20 |A #&FF \ SET UP | 00000ba0 54 31 0d 06 36 17 53 54 41 20 26 46 45 36 36 3a |T1..6.STA &FE66:| 00000bb0 53 54 41 20 26 46 45 36 37 0d 06 40 08 2e 43 4c |STA &FE67..@..CL| 00000bc0 50 0d 06 4a 1d 4a 53 52 20 4c 50 20 5c 20 4d 45 |P..J.JSR LP \ ME| 00000bd0 41 53 55 52 45 20 ee 45 20 43 59 43 4c 45 0d 06 |ASURE .E CYCLE..| 00000be0 54 07 44 45 59 0d 06 5e 0b 42 4e 45 20 43 4c 50 |T.DEY..^.BNE CLP| 00000bf0 0d 06 68 07 43 4c 49 0d 06 72 07 52 54 53 0d 06 |..h.CLI..r.RTS..| 00000c00 7c 07 2e 4c 50 0d 06 86 0b 49 4e 58 3a 49 4e 58 ||..LP....INX:INX| 00000c10 0d 06 90 16 4c 44 41 20 23 26 46 46 3a 53 54 41 |....LDA #&FF:STA| 00000c20 20 26 46 45 36 35 0d 06 9a 08 2e 4c 50 31 0d 06 | &FE65.....LP1..| 00000c30 a4 13 4c 44 41 20 26 46 45 36 30 3a 80 20 23 26 |..LDA &FE60:. #&| 00000c40 31 0d 06 ae 0b 42 45 51 20 4c 50 31 0d 06 b8 1a |1....BEQ LP1....| 00000c50 4c 44 41 20 26 46 45 36 34 20 5c 20 a5 20 4c 4f |LDA &FE64 \ . LO| 00000c60 57 20 42 59 54 45 0d 06 c2 0f 53 54 41 20 53 54 |W BYTE....STA ST| 00000c70 4f 52 45 2c 58 0d 06 cc 19 4c 44 41 20 26 46 45 |ORE,X....LDA &FE| 00000c80 36 35 20 5c 20 48 49 47 48 20 42 59 54 45 0d 06 |65 \ HIGH BYTE..| 00000c90 d6 11 53 54 41 20 53 54 4f 52 45 2b 31 2c 58 0d |..STA STORE+1,X.| 00000ca0 06 e0 0c 4c 44 41 20 23 26 46 46 0d 06 ea 18 53 |...LDA #&FF....S| 00000cb0 54 41 20 26 46 45 36 35 20 5c 20 52 45 53 45 54 |TA &FE65 \ RESET| 00000cc0 20 54 31 0d 06 f4 0b 49 4e 58 3a 49 4e 58 0d 06 | T1....INX:INX..| 00000cd0 fe 08 2e 4c 50 32 0d 07 08 13 4c 44 41 20 26 46 |...LP2....LDA &F| 00000ce0 45 36 30 3a 80 20 23 26 31 0d 07 12 0b 42 4e 45 |E60:. #&1....BNE| 00000cf0 20 4c 50 32 0d 07 1c 1a 4c 44 41 20 26 46 45 36 | LP2....LDA &FE6| 00000d00 34 20 5c 20 a5 20 4c 4f 57 20 42 59 54 45 0d 07 |4 \ . LOW BYTE..| 00000d10 26 0f 53 54 41 20 53 54 4f 52 45 2c 58 0d 07 30 |&.STA STORE,X..0| 00000d20 19 4c 44 41 20 26 46 45 36 35 20 5c 20 48 49 47 |.LDA &FE65 \ HIG| 00000d30 48 20 42 59 54 45 0d 07 3a 11 53 54 41 20 53 54 |H BYTE..:.STA ST| 00000d40 4f 52 45 2b 31 2c 58 0d 07 44 07 52 54 53 0d 07 |ORE+1,X..D.RTS..| 00000d50 4e 11 2e 54 58 20 5c 20 53 45 4e 44 20 49 52 0d |N..TX \ SEND IR.| 00000d60 07 58 07 53 45 49 0d 07 62 1e 4c 44 41 20 26 46 |.X.SEI..b.LDA &F| 00000d70 45 36 42 3a 80 20 23 26 33 46 3a 53 54 41 20 26 |E6B:. #&3F:STA &| 00000d80 46 45 36 42 0d 07 6c 22 4c 44 41 20 23 26 43 30 |FE6B..l"LDA #&C0| 00000d90 3a 53 54 41 20 26 46 45 36 45 20 5c 20 45 4e 41 |:STA &FE6E \ ENA| 00000da0 42 4c 45 20 54 31 0d 07 76 1d 4c 44 59 20 23 4e |BLE T1..v.LDY #N| 00000db0 50 25 20 5c 20 43 59 43 4c 45 53 20 b8 20 57 52 |P% \ CYCLES . WR| 00000dc0 49 54 45 0d 07 80 22 4c 44 58 20 23 26 46 45 20 |ITE..."LDX #&FE | 00000dd0 5c 20 50 4c 41 43 45 20 b8 20 54 41 4b 45 20 54 |\ PLACE . TAKE T| 00000de0 49 4d 49 4e 47 0d 07 8a 08 2e 54 4c 50 0d 07 94 |IMING.....TLP...| 00000df0 0b 4a 53 52 20 54 58 49 0d 07 9e 0f 44 45 59 3a |.JSR TXI....DEY:| 00000e00 42 4e 45 20 54 4c 50 0d 07 a8 23 4c 44 41 20 23 |BNE TLP...#LDA #| 00000e10 26 34 30 3a 53 54 41 20 26 46 45 36 45 20 5c 20 |&40:STA &FE6E \ | 00000e20 44 49 53 41 42 4c 45 20 54 31 0d 07 b2 0b 43 4c |DISABLE T1....CL| 00000e30 49 3a 52 54 53 0d 07 bc 08 2e 54 58 49 0d 07 c6 |I:RTS.....TXI...| 00000e40 0b 49 4e 58 3a 49 4e 58 0d 07 d0 0f 4c 44 41 20 |.INX:INX....LDA | 00000e50 53 54 4f 52 45 2c 58 0d 07 da 17 53 54 41 20 26 |STORE,X....STA &| 00000e60 46 45 36 34 3a 53 54 41 20 26 46 45 36 36 0d 07 |FE64:STA &FE66..| 00000e70 e4 11 4c 44 41 20 53 54 4f 52 45 2b 31 2c 58 0d |..LDA STORE+1,X.| 00000e80 07 ee 17 53 54 41 20 26 46 45 36 37 3a 53 54 41 |...STA &FE67:STA| 00000e90 20 26 46 45 36 35 0d 07 f8 1d 4c 44 41 20 26 46 | &FE65....LDA &F| 00000ea0 45 36 30 3a 84 41 20 23 32 3a 53 54 41 20 26 46 |E60:.A #2:STA &F| 00000eb0 45 36 30 0d 08 02 1a 2e 48 49 4c 20 4c 44 41 20 |E60.....HIL LDA | 00000ec0 26 46 45 36 44 3a 42 50 4c 20 48 49 4c 0d 08 0c |&FE6D:BPL HIL...| 00000ed0 1c 53 54 41 20 26 46 45 36 43 20 f4 4f 56 45 20 |.STA &FE6C .OVE | 00000ee0 49 4e 54 45 52 52 55 50 54 0d 08 16 0b 49 4e 58 |INTERRUPT....INX| 00000ef0 3a 49 4e 58 0d 08 20 0f 4c 44 41 20 53 54 4f 52 |:INX.. .LDA STOR| 00000f00 45 2c 58 0d 08 2a 17 53 54 41 20 26 46 45 36 34 |E,X..*.STA &FE64| 00000f10 3a 53 54 41 20 26 46 45 36 36 0d 08 34 11 4c 44 |:STA &FE66..4.LD| 00000f20 41 20 53 54 4f 52 45 2b 31 2c 58 0d 08 3e 17 53 |A STORE+1,X..>.S| 00000f30 54 41 20 26 46 45 36 37 3a 53 54 41 20 26 46 45 |TA &FE67:STA &FE| 00000f40 36 35 0d 08 48 1e 4c 44 41 20 26 46 45 36 30 3a |65..H.LDA &FE60:| 00000f50 80 20 23 26 46 44 3a 53 54 41 20 26 46 45 36 30 |. #&FD:STA &FE60| 00000f60 0d 08 52 1a 2e 4c 4f 50 20 4c 44 41 20 26 46 45 |..R..LOP LDA &FE| 00000f70 36 44 3a 42 50 4c 20 4c 4f 50 0d 08 5c 0d 53 54 |6D:BPL LOP..\.ST| 00000f80 41 20 26 46 45 36 45 0d 08 66 07 52 54 53 0d 08 |A &FE6E..f.RTS..| 00000f90 70 0a 2e 53 54 4f 52 45 0d 08 7a 05 5d 0d 08 84 |p..STORE..z.]...| 00000fa0 05 ed 0d 08 8e 05 e1 0d ff |.........| 00000fa9