Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornComputing_199407.adf » 9407 » 10_10Frnch/BodyBuild/CoinTest
10_10Frnch/BodyBuild/CoinTest
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 » Recent acquisitions » Acorn ADFS disks » adfs_AcornComputing_199407.adf » 9407 |
Filename: | 10_10Frnch/BodyBuild/CoinTest |
Read OK: | ✔ |
File size: | 10B8 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM>CoinTest 20MODE 9 30PRINTTAB(0,2)"Linear CCD Sensor Coin Counter" 40PRINTTAB(0,3)" Test Program" 50PRINTTAB(0,5)" By Mike Cook" 60PRINTTAB(0,8)"This needs the hardware described in:-" 70PRINT"Body Building July 94 Acorn Computing" 80PRINT:PRINT"Press Space to Continue" 90A$=GET$ 100 110DIM CODE% 500,DC% 200,PV%(4) 120SYS"OS_ReadDynamicArea",2 TO ,A% 130SP%=&2000000-A% 140 150PROC_INIT 160 170REM Set sensitivity Values from 0 to 255 180SENS%=10 190SYS 6,151,&64,SENS%+11 200 210COINS=0 220 230REPEAT 240PROC_TITLE 250VDU 28,0,31,39,17 260REPEAT 270REM Wait for a coin 280 290REPEAT 300SYS 6,150,&60 TO ,,A% 310IF (A% AND 64)<>0 THEN !FZ=0 320UNTIL (A% AND 64)=0 330 340PROC_SAMPLE 350Z%=!FZ 360COINS+=1 370PRINT"Value ";Z%;" Counted ";COINS 380PROC_DISPLAY 390UNTIL FALSE 400END 410 420DEF PROC_INIT 430SYS(&40500) TO ,PodB% 440PodB%=PodB% OR &2000 450 460REM Set up VIA Timer clock out bit 7 470SYS 6,151,&6B,&C0 480SYS 6,151,&65,&0 490SYS 6,151,&64,&30 500 510REM Enable up CB1 Interrupt 520SYS 6,151,&6E,&90 530 540REM User bits to inputs 550SYS 6,151,&62,&0 560 570FOR A%=0 TO 2 STEP 2 580P%=CODE% 590[ 600OPT A% 610.VIA EQUD PodB% 620.FZ EQUD 0 630.FV EQUD 0 640 650.Rd \ Read in 64 pulses 660STMFD R13!,{R14} 670MOV R9,R15 680SWI "OS_EnterOS" 690TEQP R15,#&C000003 \DISABLE INTERRUPTS 700MOVNV R0,R0 710 720MOV R4,#&8 \ Do this 8 times 730.LL 740LDR R0,VIA 750ADR R6,LU 760 770\ First Pulse CB2 High syncronised with CB1 interrupts 780.HL1 LDR R1,[R0,#52] \Test for CB1 interrupt 790TST R1,#&10 800BEQ HL1 \ Loop until we see it 810LDR R3,[R0] \ Dummy read to clear interrupt 820 830MOV R3,#&E00000 \ CB2 High 840STR R3,[R0,#48] 850 860.HL2 LDR R1,[R0,#52] \Test for CB1 interrupt 870TST R1,#&10 880BEQ HL2 \ Loop until we see it 890LDR R3,[R0] \ Dummy read to clear interrupt 900 910MOV R3,#&C00000 \ CB2 Low 920STR R3,[R0,#48] 930LDR R3,[R0] \ Dummy read to clear interrupt 940 950\ Now start gathering in the data 960MOV R2,#64 970.GD 980LDR R3,[R0] \ Get data 990AND R3,R3,#&F \ Mask out other bits 1000LDRB R3,[R6,R3] \ Translate into binary code 1010MOV R3,R3,LSL #5 \ Make it larger 1020STRB R3,[R5,R2] \ Store it 1030.HL LDR R1,[R0,#52] \Test for CB1 interrupt 1040TST R1,#&10 1050BEQ HL \ Loop until we see it 1060SBCS R2,R2,#1 \ Count down bytes to go 1070BNE GD 1080 1090LDR R3,[R0] \ Dummy read to clear interrupt 1100SBCS R4,R4,#1 1110BNE HL1 1120 1130\Look to see how far along the sensor we have zeros 1140MOV R7,#0 1150MOV R2,#128 1160.ZSL 1170ADD R7,R7,#1 1180CMP R7,#65 1190BEQ EX \ Jump out if at end of memory 1200LDRB R1,[R5,R7] 1210CMP R1,R2 1220BEQ ZSL 1230 1240.EX 1250LDR R1,FZ 1260CMP R7,R1 1270 1280STRGT R7,FZ \ Store the result in First Zero 1290ADD R4,R4,#1 \ Once more round 1300LDR R3,[R0] \ Get data 1310ANDS R3,R3,#&40 \ Mask out other bits 1320BEQ LL 1330 1340TEQP R9,#0 1350MOVNV R0,R0 1360LDMFD R13!, {PC} \ BACK FROM WHENST YOU CAME 1370.LU \ LOOK UP TABLE 1380EQUB &4 1390EQUB &3 1400EQUB &0 1410EQUB &2 1420 1430EQUB &0 1440EQUB &0 1450EQUB &0 1460EQUB &1 1470 1480EQUB &0 1490EQUB &0 1500EQUB &0 1510EQUB &0 1520 1530EQUB &0 1540EQUB &0 1550EQUB &0 1560EQUB &0 1570.LD EQUD 0 \ Place to store the data 1580 1590] 1600P%=DC% 1610[ 1620OPT A% 1630.DISP \ DISPLAY THE BUFFER 1640MOV R2,#0 \ X VALUE 1650MOV R5,#160 \ BYTES PER ROW 1660MOV R7,R0 \ RENUMBER START OF DATA BUFFER 1670ADD R7,R7,#64 \ ADDRESS OF HALF BUFFER 1680ADD R1,R1,#160 \ MOVE OFF TOP LINE 1690.DLOOP 1700LDRB R3,[R0],#1 \ Y VALUE 1710MOV R3,R3,LSR #1 1720MLA R4,R3,R5,R2 \ GET PIXEL OFFSET 1730ADD R4,R4,R1 \ REAL ADDRESS 1740LDRB R6,[R4] \ GET PIXEL 1750EOR R6,R6,#&2 \ TOGGLE FIRST PIXEL 1760STRB R6,[R4] \ PUT IT BACK 1770LDRB R3,[R0],#1 1780MOV R3,R3,LSR #1 1790MLA R4,R3,R5,R2 1800ADD R4,R4,R1 1810LDRB R6,[R4] 1820EOR R6,R6,#&20 \ TOGGLE SECOND PIXEL 1830STRB R6,[R4] 1840ADD R2,R2,#1 \ MOVE ALONG THE X 1850CMP R0,R7 \ FINISHED ONE BUFFER 1860MOVEQ R2,#0 \ X VALUE FOR NEXT PASS 1870CMP R2,#32 \ FINISHED? 1880BNE DLOOP 1890MOV R15,R14 \ BACK TO BASIC 1900] 1910NEXT 1920ENDPROC 1930 1940 1950DEF PROC_DISPLAY 1960A%=LD 1970B%=SP% 1980CALL DISP 1990ENDPROC 2000 2010DEF PROC_SAMPLE 2020F%=LD-1+64*SW% 2030SW%=SW% EOR 1 2040CALL Rd 2050ENDPROC 2060 2070DEF PROC_TITLE 2080LOCAL A%,Y%,L% 2090CLS 2100PRINTTAB(8,10)"Linear CCD Sensor Coin Counter" 2110PRINTTAB(8,11)" Test Program" 2120PRINTTAB(8,12)" By Mike Cook" 2130GCOL 0,2 2140MOVE 0,1019 2150DRAW 252,1019 2160PRINTTAB(14,4)"Light level" 2170PRINTTAB(14,6)"Sensitivity ";SENS% 2180VDU5 2190FOR A%=0 TO 4 2200Y%=1019-64*A% 2210L%=4-A% 2220GCOL 0,1 2230MOVE 260,Y% 2240DRAW 290,Y% 2250GCOL 0,7 2260PRINTSPC(1);L% 2270NEXT 2280VDU4 2290FOR A%=LD TO LD+132 STEP 4 2300!A%=0 2310NEXT 2320SW%=0 2330ENDPROC
�>CoinTest � 9 *�0,2)"Linear CCD Sensor Coin Counter" (�0,3)" Test Program" 2�0,5)" By Mike Cook" <2�0,8)"This needs the hardware described in:-" F,�"Body Building July 94 Acorn Computing" P �:�"Press Space to Continue" ZA$=� d n� CODE% 500,DC% 200,PV%(4) x"ș"OS_ReadDynamicArea",2 � ,A% �SP%=&2000000-A% � � �_INIT � �*� Set sensitivity Values from 0 to 255 �SENS%=10 �ș 6,151,&64,SENS%+11 � �COINS=0 � �� ��_TITLE �� 28,0,31,39,17 � � Wait for a coin "� ,ș 6,150,&60 � ,,A% 6� (A% � 64)<>0 � !FZ=0 @� (A% � 64)=0 J T�_SAMPLE ^ Z%=!FZ hCOINS+=1 r"�"Value ";Z%;" Counted ";COINS | �_DISPLAY �� � �� � �� �_INIT �ș(&40500) � ,PodB% �PodB%=PodB% � &2000 � �&� Set up VIA Timer clock out bit 7 �ș 6,151,&6B,&C0 �ș 6,151,&65,&0 �ș 6,151,&64,&30 � �� Enable up CB1 Interrupt ș 6,151,&6E,&90 � User bits to inputs &ș 6,151,&62,&0 0 :� A%=0 � 2 � 2 DP%=CODE% N[ X OPT A% b.VIA EQUD PodB% l.FZ EQUD 0 v.FV EQUD 0 � �.Rd \ Read in 64 pulses �STMFD R13!,{R14} �MOV R9,R15 �SWI "OS_EnterOS" �(TEQP R15,#&C000003 \DISABLE �ERRUPTS �MOVNV R0,R0 � � MOV R4,#&8 \ Do this 8 times �.LL �LDR R0,VIA � ADR R6,LU � :\ First Pulse CB2 High syncronised with CB1 interrupts 0.HL1 LDR R1,[R0,#52] \Test for CB1 interrupt TST R1,#&10 &BEQ HL1 \ Loop until we see it */LDR R3,[R0] \ Dummy read to clear interrupt 4 >MOV R3,#&E00000 \ CB2 High HSTR R3,[R0,#48] R \0.HL2 LDR R1,[R0,#52] \Test for CB1 interrupt fTST R1,#&10 p&BEQ HL2 \ Loop until we see it z/LDR R3,[R0] \ Dummy read to clear interrupt � �MOV R3,#&C00000 \ CB2 Low �STR R3,[R0,#48] �/LDR R3,[R0] \ Dummy read to clear interrupt � �%\ Now start gathering in the data �MOV R2,#64 �.GD �LDR R3,[R0] \ Get data �%� R3,R3,#&F \ Mask out other bits �0LDRB R3,[R6,R3] \ Translate into binary code �%MOV R3,R3,LSL #5 \ Make it larger � STRB R3,[R5,R2] \ Store it /.HL LDR R1,[R0,#52] \Test for CB1 interrupt TST R1,#&10 %BEQ HL \ Loop until we see it $/SBCS R2,R2,#1 \ Count down bytes to go . BNE GD 8 B/LDR R3,[R0] \ Dummy read to clear interrupt LSBCS R4,R4,#1 VBNE HL1 ` j7\Look to see how far along the sensor we have zeros t MOV R7,#0 ~MOV R2,#128 �.ZSL �ADD R7,R7,#1 �CMP R7,#65 �0BEQ EX \ Jump out if at end of memory �LDRB R1,[R5,R7] � CMP R1,R2 �BEQ ZSL � �.EX � LDR R1,FZ � CMP R7,R1 � 2STRGT R7,FZ \ Store the result in First Zero #ADD R4,R4,#1 \ Once more round LDR R3,[R0] \ Get data '�S R3,R3,#&40 \ Mask out other bits ( BEQ LL 2 <TEQP R9,#0 FMOVNV R0,R0 P-LDMFD R13!, {PC} \ BACK FROM �ST YOU CAME Z.LU \ LOOK UP TABLE dEQUB &4 nEQUB &3 xEQUB &0 �EQUB &2 � �EQUB &0 �EQUB &0 �EQUB &0 �EQUB &1 � �EQUB &0 �EQUB &0 �EQUB &0 �EQUB &0 � �EQUB &0 EQUB &0 EQUB &0 EQUB &0 "(.LD EQUD 0 \ Place to store the data , 6] @ P%=DC% J[ T OPT A% ^.DISP \ DISPLAY THE BUFFER hMOV R2,#0 \ X �UE rMOV R5,#160 \ BYTES PER ROW |#MOV R7,R0 \ Ǚ START � � BUFFER �)ADD R7,R7,#64 \ ADDRESS � HALF BUFFER �ADD R1,R1,#160 \ � � �P � � .DLOOP �LDRB R3,[R0],#1 \ Y �UE �MOV R3,R3,LSR #1 �"MLA R4,R3,R5,R2 \ � PIXEL �SET �ADD R4,R4,R1 \ REAL ADDRESS �LDRB R6,[R4] \ � PIXEL �#� R6,R6,#&2 \ �GGLE FIRST PIXEL �STRB R6,[R4] \ PUT IT BACK �LDRB R3,[R0],#1 �MOV R3,R3,LSR #1 �MLA R4,R3,R5,R2 ADD R4,R4,R1 LDRB R6,[R4] %� R6,R6,#&20 \ �GGLE SECOND PIXEL &STRB R6,[R4] 0 ADD R2,R2,#1 \ � ALONG THE X :"CMP R0,R7 \ FINISHED �E BUFFER D�Q R2,#0 \ X �UE � � PASS NCMP R2,#32 \ FINISHED? X BNE DLOOP bMOV R15,R14 \ BACK � BASIC l] v� �� � � �� �_DISPLAY � A%=LD � B%=SP% � � DISP �� � �� �_SAMPLE �F%=LD-1+64*SW% �SW%=SW% � 1 �� Rd � � �_TITLE � A%,Y%,L% *� 4+�8,10)"Linear CCD Sensor Coin Counter" >�8,11)" Test Program" H�8,12)" By Mike Cook" R � 0,2 \� 0,1019 f� 252,1019 p�14,4)"Light level" z�14,6)"Sensitivity ";SENS% ��5 �� A%=0 � 4 �Y%=1019-64*A% �L%=4-A% � � 0,1 �� 260,Y% �� 290,Y% � � 0,7 ��(1);L% �� ��4 �� A%=LD � LD+132 � 4 � !A%=0 � SW%=0 � �
00000000 0d 00 0a 0e f4 3e 43 6f 69 6e 54 65 73 74 0d 00 |.....>CoinTest..| 00000010 14 07 eb 20 39 0d 00 1e 2a f1 8a 30 2c 32 29 22 |... 9...*..0,2)"| 00000020 4c 69 6e 65 61 72 20 43 43 44 20 53 65 6e 73 6f |Linear CCD Senso| 00000030 72 20 43 6f 69 6e 20 43 6f 75 6e 74 65 72 22 0d |r Coin Counter".| 00000040 00 28 1e f1 8a 30 2c 33 29 22 20 20 20 20 20 20 |.(...0,3)" | 00000050 54 65 73 74 20 50 72 6f 67 72 61 6d 22 0d 00 32 |Test Program"..2| 00000060 1f f1 8a 30 2c 35 29 22 20 20 20 20 20 20 20 42 |...0,5)" B| 00000070 79 20 4d 69 6b 65 20 43 6f 6f 6b 22 0d 00 3c 32 |y Mike Cook"..<2| 00000080 f1 8a 30 2c 38 29 22 54 68 69 73 20 6e 65 65 64 |..0,8)"This need| 00000090 73 20 74 68 65 20 68 61 72 64 77 61 72 65 20 64 |s the hardware d| 000000a0 65 73 63 72 69 62 65 64 20 69 6e 3a 2d 22 0d 00 |escribed in:-"..| 000000b0 46 2c f1 22 42 6f 64 79 20 42 75 69 6c 64 69 6e |F,."Body Buildin| 000000c0 67 20 4a 75 6c 79 20 39 34 20 41 63 6f 72 6e 20 |g July 94 Acorn | 000000d0 43 6f 6d 70 75 74 69 6e 67 22 0d 00 50 20 f1 3a |Computing"..P .:| 000000e0 f1 22 50 72 65 73 73 20 53 70 61 63 65 20 74 6f |."Press Space to| 000000f0 20 43 6f 6e 74 69 6e 75 65 22 0d 00 5a 08 41 24 | Continue"..Z.A$| 00000100 3d be 0d 00 64 04 0d 00 6e 1e de 20 43 4f 44 45 |=...d...n.. CODE| 00000110 25 20 35 30 30 2c 44 43 25 20 32 30 30 2c 50 56 |% 500,DC% 200,PV| 00000120 25 28 34 29 0d 00 78 22 c8 99 22 4f 53 5f 52 65 |%(4)..x".."OS_Re| 00000130 61 64 44 79 6e 61 6d 69 63 41 72 65 61 22 2c 32 |adDynamicArea",2| 00000140 20 b8 20 2c 41 25 0d 00 82 13 53 50 25 3d 26 32 | . ,A%....SP%=&2| 00000150 30 30 30 30 30 30 2d 41 25 0d 00 8c 04 0d 00 96 |000000-A%.......| 00000160 0a f2 5f 49 4e 49 54 0d 00 a0 04 0d 00 aa 2a f4 |.._INIT.......*.| 00000170 20 53 65 74 20 73 65 6e 73 69 74 69 76 69 74 79 | Set sensitivity| 00000180 20 56 61 6c 75 65 73 20 66 72 6f 6d 20 30 20 74 | Values from 0 t| 00000190 6f 20 32 35 35 0d 00 b4 0c 53 45 4e 53 25 3d 31 |o 255....SENS%=1| 000001a0 30 0d 00 be 19 c8 99 20 36 2c 31 35 31 2c 26 36 |0...... 6,151,&6| 000001b0 34 2c 53 45 4e 53 25 2b 31 31 0d 00 c8 04 0d 00 |4,SENS%+11......| 000001c0 d2 0b 43 4f 49 4e 53 3d 30 0d 00 dc 04 0d 00 e6 |..COINS=0.......| 000001d0 05 f5 0d 00 f0 0b f2 5f 54 49 54 4c 45 0d 00 fa |......._TITLE...| 000001e0 13 ef 20 32 38 2c 30 2c 33 31 2c 33 39 2c 31 37 |.. 28,0,31,39,17| 000001f0 0d 01 04 05 f5 0d 01 0e 15 f4 20 57 61 69 74 20 |.......... Wait | 00000200 66 6f 72 20 61 20 63 6f 69 6e 0d 01 18 04 0d 01 |for a coin......| 00000210 22 05 f5 0d 01 2c 17 c8 99 20 36 2c 31 35 30 2c |"....,... 6,150,| 00000220 26 36 30 20 b8 20 2c 2c 41 25 0d 01 36 1a e7 20 |&60 . ,,A%..6.. | 00000230 28 41 25 20 80 20 36 34 29 3c 3e 30 20 8c 20 21 |(A% . 64)<>0 . !| 00000240 46 5a 3d 30 0d 01 40 11 fd 20 28 41 25 20 80 20 |FZ=0..@.. (A% . | 00000250 36 34 29 3d 30 0d 01 4a 04 0d 01 54 0c f2 5f 53 |64)=0..J...T.._S| 00000260 41 4d 50 4c 45 0d 01 5e 0a 5a 25 3d 21 46 5a 0d |AMPLE..^.Z%=!FZ.| 00000270 01 68 0c 43 4f 49 4e 53 2b 3d 31 0d 01 72 22 f1 |.h.COINS+=1..r".| 00000280 22 56 61 6c 75 65 20 22 3b 5a 25 3b 22 20 43 6f |"Value ";Z%;" Co| 00000290 75 6e 74 65 64 20 22 3b 43 4f 49 4e 53 0d 01 7c |unted ";COINS..|| 000002a0 0d f2 5f 44 49 53 50 4c 41 59 0d 01 86 07 fd 20 |.._DISPLAY..... | 000002b0 a3 0d 01 90 05 e0 0d 01 9a 04 0d 01 a4 0c dd 20 |............... | 000002c0 f2 5f 49 4e 49 54 0d 01 ae 17 c8 99 28 26 34 30 |._INIT......(&40| 000002d0 35 30 30 29 20 b8 20 2c 50 6f 64 42 25 0d 01 b8 |500) . ,PodB%...| 000002e0 17 50 6f 64 42 25 3d 50 6f 64 42 25 20 84 20 26 |.PodB%=PodB% . &| 000002f0 32 30 30 30 0d 01 c2 04 0d 01 cc 26 f4 20 53 65 |2000.......&. Se| 00000300 74 20 75 70 20 56 49 41 20 54 69 6d 65 72 20 63 |t up VIA Timer c| 00000310 6c 6f 63 6b 20 6f 75 74 20 62 69 74 20 37 0d 01 |lock out bit 7..| 00000320 d6 14 c8 99 20 36 2c 31 35 31 2c 26 36 42 2c 26 |.... 6,151,&6B,&| 00000330 43 30 0d 01 e0 13 c8 99 20 36 2c 31 35 31 2c 26 |C0...... 6,151,&| 00000340 36 35 2c 26 30 0d 01 ea 14 c8 99 20 36 2c 31 35 |65,&0...... 6,15| 00000350 31 2c 26 36 34 2c 26 33 30 0d 01 f4 04 0d 01 fe |1,&64,&30.......| 00000360 1d f4 20 45 6e 61 62 6c 65 20 75 70 20 43 42 31 |.. Enable up CB1| 00000370 20 49 6e 74 65 72 72 75 70 74 0d 02 08 14 c8 99 | Interrupt......| 00000380 20 36 2c 31 35 31 2c 26 36 45 2c 26 39 30 0d 02 | 6,151,&6E,&90..| 00000390 12 04 0d 02 1c 19 f4 20 55 73 65 72 20 62 69 74 |....... User bit| 000003a0 73 20 74 6f 20 69 6e 70 75 74 73 0d 02 26 13 c8 |s to inputs..&..| 000003b0 99 20 36 2c 31 35 31 2c 26 36 32 2c 26 30 0d 02 |. 6,151,&62,&0..| 000003c0 30 04 0d 02 3a 12 e3 20 41 25 3d 30 20 b8 20 32 |0...:.. A%=0 . 2| 000003d0 20 88 20 32 0d 02 44 0c 50 25 3d 43 4f 44 45 25 | . 2..D.P%=CODE%| 000003e0 0d 02 4e 05 5b 0d 02 58 0a 4f 50 54 20 41 25 0d |..N.[..X.OPT A%.| 000003f0 02 62 13 2e 56 49 41 20 45 51 55 44 20 50 6f 64 |.b..VIA EQUD Pod| 00000400 42 25 0d 02 6c 0f 2e 46 5a 20 20 45 51 55 44 20 |B%..l..FZ EQUD | 00000410 30 0d 02 76 0f 2e 46 56 20 20 45 51 55 44 20 30 |0..v..FV EQUD 0| 00000420 0d 02 80 04 0d 02 8a 1b 2e 52 64 20 5c 20 52 65 |.........Rd \ Re| 00000430 61 64 20 69 6e 20 36 34 20 70 75 6c 73 65 73 0d |ad in 64 pulses.| 00000440 02 94 14 53 54 4d 46 44 20 52 31 33 21 2c 7b 52 |...STMFD R13!,{R| 00000450 31 34 7d 0d 02 9e 0e 4d 4f 56 20 52 39 2c 52 31 |14}....MOV R9,R1| 00000460 35 0d 02 a8 14 53 57 49 20 22 4f 53 5f 45 6e 74 |5....SWI "OS_Ent| 00000470 65 72 4f 53 22 0d 02 b2 28 54 45 51 50 20 52 31 |erOS"...(TEQP R1| 00000480 35 2c 23 26 43 30 30 30 30 30 33 20 5c 44 49 53 |5,#&C000003 \DIS| 00000490 41 42 4c 45 20 a8 45 52 52 55 50 54 53 0d 02 bc |ABLE .ERRUPTS...| 000004a0 0f 4d 4f 56 4e 56 20 52 30 2c 52 30 0d 02 c6 04 |.MOVNV R0,R0....| 000004b0 0d 02 d0 20 4d 4f 56 20 52 34 2c 23 26 38 20 5c |... MOV R4,#&8 \| 000004c0 20 44 6f 20 74 68 69 73 20 38 20 74 69 6d 65 73 | Do this 8 times| 000004d0 0d 02 da 07 2e 4c 4c 0d 02 e4 0e 4c 44 52 20 52 |.....LL....LDR R| 000004e0 30 2c 56 49 41 0d 02 ee 0d 41 44 52 20 52 36 2c |0,VIA....ADR R6,| 000004f0 4c 55 0d 02 f8 04 0d 03 02 3a 5c 20 46 69 72 73 |LU.......:\ Firs| 00000500 74 20 50 75 6c 73 65 20 43 42 32 20 48 69 67 68 |t Pulse CB2 High| 00000510 20 73 79 6e 63 72 6f 6e 69 73 65 64 20 77 69 74 | syncronised wit| 00000520 68 20 43 42 31 20 69 6e 74 65 72 72 75 70 74 73 |h CB1 interrupts| 00000530 0d 03 0c 30 2e 48 4c 31 20 4c 44 52 20 52 31 2c |...0.HL1 LDR R1,| 00000540 5b 52 30 2c 23 35 32 5d 20 5c 54 65 73 74 20 66 |[R0,#52] \Test f| 00000550 6f 72 20 43 42 31 20 69 6e 74 65 72 72 75 70 74 |or CB1 interrupt| 00000560 0d 03 16 0f 54 53 54 20 52 31 2c 23 26 31 30 0d |....TST R1,#&10.| 00000570 03 20 26 42 45 51 20 48 4c 31 20 20 20 20 20 5c |. &BEQ HL1 \| 00000580 20 4c 6f 6f 70 20 75 6e 74 69 6c 20 77 65 20 73 | Loop until we s| 00000590 65 65 20 69 74 0d 03 2a 2f 4c 44 52 20 52 33 2c |ee it..*/LDR R3,| 000005a0 5b 52 30 5d 20 5c 20 44 75 6d 6d 79 20 72 65 61 |[R0] \ Dummy rea| 000005b0 64 20 74 6f 20 63 6c 65 61 72 20 69 6e 74 65 72 |d to clear inter| 000005c0 72 75 70 74 0d 03 34 04 0d 03 3e 1e 4d 4f 56 20 |rupt..4...>.MOV | 000005d0 52 33 2c 23 26 45 30 30 30 30 30 20 5c 20 43 42 |R3,#&E00000 \ CB| 000005e0 32 20 48 69 67 68 0d 03 48 13 53 54 52 20 52 33 |2 High..H.STR R3| 000005f0 2c 5b 52 30 2c 23 34 38 5d 0d 03 52 04 0d 03 5c |,[R0,#48]..R...\| 00000600 30 2e 48 4c 32 20 4c 44 52 20 52 31 2c 5b 52 30 |0.HL2 LDR R1,[R0| 00000610 2c 23 35 32 5d 20 5c 54 65 73 74 20 66 6f 72 20 |,#52] \Test for | 00000620 43 42 31 20 69 6e 74 65 72 72 75 70 74 0d 03 66 |CB1 interrupt..f| 00000630 0f 54 53 54 20 52 31 2c 23 26 31 30 0d 03 70 26 |.TST R1,#&10..p&| 00000640 42 45 51 20 48 4c 32 20 20 20 20 20 5c 20 4c 6f |BEQ HL2 \ Lo| 00000650 6f 70 20 75 6e 74 69 6c 20 77 65 20 73 65 65 20 |op until we see | 00000660 69 74 0d 03 7a 2f 4c 44 52 20 52 33 2c 5b 52 30 |it..z/LDR R3,[R0| 00000670 5d 20 5c 20 44 75 6d 6d 79 20 72 65 61 64 20 74 |] \ Dummy read t| 00000680 6f 20 63 6c 65 61 72 20 69 6e 74 65 72 72 75 70 |o clear interrup| 00000690 74 0d 03 84 04 0d 03 8e 1d 4d 4f 56 20 52 33 2c |t........MOV R3,| 000006a0 23 26 43 30 30 30 30 30 20 5c 20 43 42 32 20 4c |#&C00000 \ CB2 L| 000006b0 6f 77 0d 03 98 13 53 54 52 20 52 33 2c 5b 52 30 |ow....STR R3,[R0| 000006c0 2c 23 34 38 5d 0d 03 a2 2f 4c 44 52 20 52 33 2c |,#48].../LDR R3,| 000006d0 5b 52 30 5d 20 5c 20 44 75 6d 6d 79 20 72 65 61 |[R0] \ Dummy rea| 000006e0 64 20 74 6f 20 63 6c 65 61 72 20 69 6e 74 65 72 |d to clear inter| 000006f0 72 75 70 74 0d 03 ac 04 0d 03 b6 25 5c 20 4e 6f |rupt.......%\ No| 00000700 77 20 73 74 61 72 74 20 67 61 74 68 65 72 69 6e |w start gatherin| 00000710 67 20 69 6e 20 74 68 65 20 64 61 74 61 0d 03 c0 |g in the data...| 00000720 0e 4d 4f 56 20 52 32 2c 23 36 34 0d 03 ca 07 2e |.MOV R2,#64.....| 00000730 47 44 0d 03 d4 1b 4c 44 52 20 52 33 2c 5b 52 30 |GD....LDR R3,[R0| 00000740 5d 20 20 5c 20 47 65 74 20 64 61 74 61 0d 03 de |] \ Get data...| 00000750 25 80 20 52 33 2c 52 33 2c 23 26 46 20 5c 20 4d |%. R3,R3,#&F \ M| 00000760 61 73 6b 20 6f 75 74 20 6f 74 68 65 72 20 62 69 |ask out other bi| 00000770 74 73 0d 03 e8 30 4c 44 52 42 20 52 33 2c 5b 52 |ts...0LDRB R3,[R| 00000780 36 2c 52 33 5d 20 5c 20 54 72 61 6e 73 6c 61 74 |6,R3] \ Translat| 00000790 65 20 69 6e 74 6f 20 62 69 6e 61 72 79 20 63 6f |e into binary co| 000007a0 64 65 0d 03 f2 25 4d 4f 56 20 52 33 2c 52 33 2c |de...%MOV R3,R3,| 000007b0 4c 53 4c 20 23 35 20 5c 20 4d 61 6b 65 20 69 74 |LSL #5 \ Make it| 000007c0 20 6c 61 72 67 65 72 0d 03 fc 20 53 54 52 42 20 | larger... STRB | 000007d0 52 33 2c 5b 52 35 2c 52 32 5d 20 20 20 5c 20 53 |R3,[R5,R2] \ S| 000007e0 74 6f 72 65 20 69 74 0d 04 06 2f 2e 48 4c 20 4c |tore it.../.HL L| 000007f0 44 52 20 52 31 2c 5b 52 30 2c 23 35 32 5d 20 5c |DR R1,[R0,#52] \| 00000800 54 65 73 74 20 66 6f 72 20 43 42 31 20 69 6e 74 |Test for CB1 int| 00000810 65 72 72 75 70 74 0d 04 10 0f 54 53 54 20 52 31 |errupt....TST R1| 00000820 2c 23 26 31 30 0d 04 1a 25 42 45 51 20 48 4c 20 |,#&10...%BEQ HL | 00000830 20 20 20 20 5c 20 4c 6f 6f 70 20 75 6e 74 69 6c | \ Loop until| 00000840 20 77 65 20 73 65 65 20 69 74 0d 04 24 2f 53 42 | we see it..$/SB| 00000850 43 53 20 52 32 2c 52 32 2c 23 31 20 20 20 20 20 |CS R2,R2,#1 | 00000860 20 5c 20 43 6f 75 6e 74 20 64 6f 77 6e 20 62 79 | \ Count down by| 00000870 74 65 73 20 74 6f 20 67 6f 0d 04 2e 0a 42 4e 45 |tes to go....BNE| 00000880 20 47 44 0d 04 38 04 0d 04 42 2f 4c 44 52 20 52 | GD..8...B/LDR R| 00000890 33 2c 5b 52 30 5d 20 5c 20 44 75 6d 6d 79 20 72 |3,[R0] \ Dummy r| 000008a0 65 61 64 20 74 6f 20 63 6c 65 61 72 20 69 6e 74 |ead to clear int| 000008b0 65 72 72 75 70 74 0d 04 4c 11 53 42 43 53 20 52 |errupt..L.SBCS R| 000008c0 34 2c 52 34 2c 23 31 0d 04 56 0b 42 4e 45 20 48 |4,R4,#1..V.BNE H| 000008d0 4c 31 0d 04 60 04 0d 04 6a 37 5c 4c 6f 6f 6b 20 |L1..`...j7\Look | 000008e0 74 6f 20 73 65 65 20 68 6f 77 20 66 61 72 20 61 |to see how far a| 000008f0 6c 6f 6e 67 20 74 68 65 20 73 65 6e 73 6f 72 20 |long the sensor | 00000900 77 65 20 68 61 76 65 20 7a 65 72 6f 73 0d 04 74 |we have zeros..t| 00000910 0d 4d 4f 56 20 52 37 2c 23 30 0d 04 7e 0f 4d 4f |.MOV R7,#0..~.MO| 00000920 56 20 52 32 2c 23 31 32 38 0d 04 88 08 2e 5a 53 |V R2,#128.....ZS| 00000930 4c 0d 04 92 10 41 44 44 20 52 37 2c 52 37 2c 23 |L....ADD R7,R7,#| 00000940 31 0d 04 9c 0e 43 4d 50 20 52 37 2c 23 36 35 0d |1....CMP R7,#65.| 00000950 04 a6 30 42 45 51 20 45 58 20 20 20 20 20 20 20 |..0BEQ EX | 00000960 20 5c 20 4a 75 6d 70 20 6f 75 74 20 69 66 20 61 | \ Jump out if a| 00000970 74 20 65 6e 64 20 6f 66 20 6d 65 6d 6f 72 79 0d |t end of memory.| 00000980 04 b0 13 4c 44 52 42 20 52 31 2c 5b 52 35 2c 52 |...LDRB R1,[R5,R| 00000990 37 5d 0d 04 ba 0d 43 4d 50 20 52 31 2c 52 32 0d |7]....CMP R1,R2.| 000009a0 04 c4 0b 42 45 51 20 5a 53 4c 0d 04 ce 04 0d 04 |...BEQ ZSL......| 000009b0 d8 07 2e 45 58 0d 04 e2 0d 4c 44 52 20 52 31 2c |...EX....LDR R1,| 000009c0 46 5a 0d 04 ec 0d 43 4d 50 20 52 37 2c 52 31 0d |FZ....CMP R7,R1.| 000009d0 04 f6 04 0d 05 00 32 53 54 52 47 54 20 52 37 2c |......2STRGT R7,| 000009e0 46 5a 20 20 20 5c 20 53 74 6f 72 65 20 74 68 65 |FZ \ Store the| 000009f0 20 72 65 73 75 6c 74 20 69 6e 20 46 69 72 73 74 | result in First| 00000a00 20 5a 65 72 6f 0d 05 0a 23 41 44 44 20 52 34 2c | Zero...#ADD R4,| 00000a10 52 34 2c 23 31 20 20 5c 20 4f 6e 63 65 20 6d 6f |R4,#1 \ Once mo| 00000a20 72 65 20 72 6f 75 6e 64 0d 05 14 1b 4c 44 52 20 |re round....LDR | 00000a30 52 33 2c 5b 52 30 5d 20 20 5c 20 47 65 74 20 64 |R3,[R0] \ Get d| 00000a40 61 74 61 0d 05 1e 27 80 53 20 52 33 2c 52 33 2c |ata...'.S R3,R3,| 00000a50 23 26 34 30 20 5c 20 4d 61 73 6b 20 6f 75 74 20 |#&40 \ Mask out | 00000a60 6f 74 68 65 72 20 62 69 74 73 0d 05 28 0a 42 45 |other bits..(.BE| 00000a70 51 20 4c 4c 0d 05 32 04 0d 05 3c 0e 54 45 51 50 |Q LL..2...<.TEQP| 00000a80 20 52 39 2c 23 30 0d 05 46 0f 4d 4f 56 4e 56 20 | R9,#0..F.MOVNV | 00000a90 52 30 2c 52 30 0d 05 50 2d 4c 44 4d 46 44 20 52 |R0,R0..P-LDMFD R| 00000aa0 31 33 21 2c 20 7b 50 43 7d 20 5c 20 42 41 43 4b |13!, {PC} \ BACK| 00000ab0 20 46 52 4f 4d 20 c9 53 54 20 59 4f 55 20 43 41 | FROM .ST YOU CA| 00000ac0 4d 45 0d 05 5a 17 2e 4c 55 20 5c 20 4c 4f 4f 4b |ME..Z..LU \ LOOK| 00000ad0 20 55 50 20 54 41 42 4c 45 0d 05 64 0b 45 51 55 | UP TABLE..d.EQU| 00000ae0 42 20 26 34 0d 05 6e 0b 45 51 55 42 20 26 33 0d |B &4..n.EQUB &3.| 00000af0 05 78 0b 45 51 55 42 20 26 30 0d 05 82 0b 45 51 |.x.EQUB &0....EQ| 00000b00 55 42 20 26 32 0d 05 8c 04 0d 05 96 0b 45 51 55 |UB &2........EQU| 00000b10 42 20 26 30 0d 05 a0 0b 45 51 55 42 20 26 30 0d |B &0....EQUB &0.| 00000b20 05 aa 0b 45 51 55 42 20 26 30 0d 05 b4 0b 45 51 |...EQUB &0....EQ| 00000b30 55 42 20 26 31 0d 05 be 04 0d 05 c8 0b 45 51 55 |UB &1........EQU| 00000b40 42 20 26 30 0d 05 d2 0b 45 51 55 42 20 26 30 0d |B &0....EQUB &0.| 00000b50 05 dc 0b 45 51 55 42 20 26 30 0d 05 e6 0b 45 51 |...EQUB &0....EQ| 00000b60 55 42 20 26 30 0d 05 f0 04 0d 05 fa 0b 45 51 55 |UB &0........EQU| 00000b70 42 20 26 30 0d 06 04 0b 45 51 55 42 20 26 30 0d |B &0....EQUB &0.| 00000b80 06 0e 0b 45 51 55 42 20 26 30 0d 06 18 0b 45 51 |...EQUB &0....EQ| 00000b90 55 42 20 26 30 0d 06 22 28 2e 4c 44 20 45 51 55 |UB &0.."(.LD EQU| 00000ba0 44 20 30 20 5c 20 50 6c 61 63 65 20 74 6f 20 73 |D 0 \ Place to s| 00000bb0 74 6f 72 65 20 74 68 65 20 64 61 74 61 0d 06 2c |tore the data..,| 00000bc0 04 0d 06 36 05 5d 0d 06 40 0a 50 25 3d 44 43 25 |...6.]..@.P%=DC%| 00000bd0 0d 06 4a 05 5b 0d 06 54 0a 4f 50 54 20 41 25 0d |..J.[..T.OPT A%.| 00000be0 06 5e 1e 2e 44 49 53 50 20 5c 20 44 49 53 50 4c |.^..DISP \ DISPL| 00000bf0 41 59 20 54 48 45 20 42 55 46 46 45 52 0d 06 68 |AY THE BUFFER..h| 00000c00 15 4d 4f 56 20 52 32 2c 23 30 20 5c 20 58 20 bb |.MOV R2,#0 \ X .| 00000c10 55 45 0d 06 72 1f 4d 4f 56 20 52 35 2c 23 31 36 |UE..r.MOV R5,#16| 00000c20 30 20 5c 20 42 59 54 45 53 20 50 45 52 20 52 4f |0 \ BYTES PER RO| 00000c30 57 0d 06 7c 23 4d 4f 56 20 52 37 2c 52 30 20 5c |W..|#MOV R7,R0 \| 00000c40 20 c7 99 20 53 54 41 52 54 20 ca 20 dc 20 42 55 | .. START . . BU| 00000c50 46 46 45 52 0d 06 86 29 41 44 44 20 52 37 2c 52 |FFER...)ADD R7,R| 00000c60 37 2c 23 36 34 20 5c 20 41 44 44 52 45 53 53 20 |7,#64 \ ADDRESS | 00000c70 ca 20 48 41 4c 46 20 42 55 46 46 45 52 0d 06 90 |. HALF BUFFER...| 00000c80 1d 41 44 44 20 52 31 2c 52 31 2c 23 31 36 30 20 |.ADD R1,R1,#160 | 00000c90 5c 20 ec 20 87 20 b8 50 20 86 0d 06 9a 0a 2e 44 |\ . . .P ......D| 00000ca0 4c 4f 4f 50 0d 06 a4 1b 4c 44 52 42 20 52 33 2c |LOOP....LDRB R3,| 00000cb0 5b 52 30 5d 2c 23 31 20 5c 20 59 20 bb 55 45 0d |[R0],#1 \ Y .UE.| 00000cc0 06 ae 14 4d 4f 56 20 52 33 2c 52 33 2c 4c 53 52 |...MOV R3,R3,LSR| 00000cd0 20 23 31 0d 06 b8 22 4d 4c 41 20 52 34 2c 52 33 | #1..."MLA R4,R3| 00000ce0 2c 52 35 2c 52 32 20 5c 20 a5 20 50 49 58 45 4c |,R5,R2 \ . PIXEL| 00000cf0 20 87 53 45 54 0d 06 c2 1f 41 44 44 20 52 34 2c | .SET....ADD R4,| 00000d00 52 34 2c 52 31 20 5c 20 52 45 41 4c 20 41 44 44 |R4,R1 \ REAL ADD| 00000d10 52 45 53 53 0d 06 cc 1a 4c 44 52 42 20 52 36 2c |RESS....LDRB R6,| 00000d20 5b 52 34 5d 20 5c 20 a5 20 50 49 58 45 4c 0d 06 |[R4] \ . PIXEL..| 00000d30 d6 23 82 20 52 36 2c 52 36 2c 23 26 32 20 5c 20 |.#. R6,R6,#&2 \ | 00000d40 b8 47 47 4c 45 20 46 49 52 53 54 20 50 49 58 45 |.GGLE FIRST PIXE| 00000d50 4c 0d 06 e0 1e 53 54 52 42 20 52 36 2c 5b 52 34 |L....STRB R6,[R4| 00000d60 5d 20 5c 20 50 55 54 20 49 54 20 42 41 43 4b 0d |] \ PUT IT BACK.| 00000d70 06 ea 13 4c 44 52 42 20 52 33 2c 5b 52 30 5d 2c |...LDRB R3,[R0],| 00000d80 23 31 0d 06 f4 14 4d 4f 56 20 52 33 2c 52 33 2c |#1....MOV R3,R3,| 00000d90 4c 53 52 20 23 31 0d 06 fe 13 4d 4c 41 20 52 34 |LSR #1....MLA R4| 00000da0 2c 52 33 2c 52 35 2c 52 32 0d 07 08 10 41 44 44 |,R3,R5,R2....ADD| 00000db0 20 52 34 2c 52 34 2c 52 31 0d 07 12 10 4c 44 52 | R4,R4,R1....LDR| 00000dc0 42 20 52 36 2c 5b 52 34 5d 0d 07 1c 25 82 20 52 |B R6,[R4]...%. R| 00000dd0 36 2c 52 36 2c 23 26 32 30 20 5c 20 b8 47 47 4c |6,R6,#&20 \ .GGL| 00000de0 45 20 53 45 43 4f 4e 44 20 50 49 58 45 4c 0d 07 |E SECOND PIXEL..| 00000df0 26 10 53 54 52 42 20 52 36 2c 5b 52 34 5d 0d 07 |&.STRB R6,[R4]..| 00000e00 30 20 41 44 44 20 52 32 2c 52 32 2c 23 31 20 5c |0 ADD R2,R2,#1 \| 00000e10 20 ec 20 41 4c 4f 4e 47 20 54 48 45 20 58 0d 07 | . ALONG THE X..| 00000e20 3a 22 43 4d 50 20 52 30 2c 52 37 20 5c 20 46 49 |:"CMP R0,R7 \ FI| 00000e30 4e 49 53 48 45 44 20 ee 45 20 42 55 46 46 45 52 |NISHED .E BUFFER| 00000e40 0d 07 44 1d ec 51 20 52 32 2c 23 30 20 5c 20 58 |..D..Q R2,#0 \ X| 00000e50 20 bb 55 45 20 e3 20 ed 20 50 41 53 53 0d 07 4e | .UE . . PASS..N| 00000e60 1a 43 4d 50 20 52 32 2c 23 33 32 20 5c 20 46 49 |.CMP R2,#32 \ FI| 00000e70 4e 49 53 48 45 44 3f 0d 07 58 0d 42 4e 45 20 44 |NISHED?..X.BNE D| 00000e80 4c 4f 4f 50 0d 07 62 1e 4d 4f 56 20 52 31 35 2c |LOOP..b.MOV R15,| 00000e90 52 31 34 20 5c 20 42 41 43 4b 20 b8 20 42 41 53 |R14 \ BACK . BAS| 00000ea0 49 43 0d 07 6c 05 5d 0d 07 76 05 ed 0d 07 80 05 |IC..l.]..v......| 00000eb0 e1 0d 07 8a 04 0d 07 94 04 0d 07 9e 0f dd 20 f2 |.............. .| 00000ec0 5f 44 49 53 50 4c 41 59 0d 07 a8 09 41 25 3d 4c |_DISPLAY....A%=L| 00000ed0 44 0d 07 b2 0a 42 25 3d 53 50 25 0d 07 bc 0a d6 |D....B%=SP%.....| 00000ee0 20 44 49 53 50 0d 07 c6 05 e1 0d 07 d0 04 0d 07 | DISP...........| 00000ef0 da 0e dd 20 f2 5f 53 41 4d 50 4c 45 0d 07 e4 12 |... ._SAMPLE....| 00000f00 46 25 3d 4c 44 2d 31 2b 36 34 2a 53 57 25 0d 07 |F%=LD-1+64*SW%..| 00000f10 ee 0f 53 57 25 3d 53 57 25 20 82 20 31 0d 07 f8 |..SW%=SW% . 1...| 00000f20 08 d6 20 52 64 0d 08 02 05 e1 0d 08 0c 04 0d 08 |.. Rd...........| 00000f30 16 0d dd 20 f2 5f 54 49 54 4c 45 0d 08 20 0e ea |... ._TITLE.. ..| 00000f40 20 41 25 2c 59 25 2c 4c 25 0d 08 2a 05 db 0d 08 | A%,Y%,L%..*....| 00000f50 34 2b f1 8a 38 2c 31 30 29 22 4c 69 6e 65 61 72 |4+..8,10)"Linear| 00000f60 20 43 43 44 20 53 65 6e 73 6f 72 20 43 6f 69 6e | CCD Sensor Coin| 00000f70 20 43 6f 75 6e 74 65 72 22 0d 08 3e 1f f1 8a 38 | Counter"..>...8| 00000f80 2c 31 31 29 22 20 20 20 20 20 20 54 65 73 74 20 |,11)" Test | 00000f90 50 72 6f 67 72 61 6d 22 0d 08 48 1f f1 8a 38 2c |Program"..H...8,| 00000fa0 31 32 29 22 20 20 20 20 20 20 42 79 20 4d 69 6b |12)" By Mik| 00000fb0 65 20 43 6f 6f 6b 22 0d 08 52 09 e6 20 30 2c 32 |e Cook"..R.. 0,2| 00000fc0 0d 08 5c 0c ec 20 30 2c 31 30 31 39 0d 08 66 0e |..\.. 0,1019..f.| 00000fd0 df 20 32 35 32 2c 31 30 31 39 0d 08 70 18 f1 8a |. 252,1019..p...| 00000fe0 31 34 2c 34 29 22 4c 69 67 68 74 20 6c 65 76 65 |14,4)"Light leve| 00000ff0 6c 22 0d 08 7a 1f f1 8a 31 34 2c 36 29 22 53 65 |l"..z...14,6)"Se| 00001000 6e 73 69 74 69 76 69 74 79 20 22 3b 53 45 4e 53 |nsitivity ";SENS| 00001010 25 0d 08 84 06 ef 35 0d 08 8e 0e e3 20 41 25 3d |%.....5..... A%=| 00001020 30 20 b8 20 34 0d 08 98 11 59 25 3d 31 30 31 39 |0 . 4....Y%=1019| 00001030 2d 36 34 2a 41 25 0d 08 a2 0b 4c 25 3d 34 2d 41 |-64*A%....L%=4-A| 00001040 25 0d 08 ac 09 e6 20 30 2c 31 0d 08 b6 0c ec 20 |%..... 0,1..... | 00001050 32 36 30 2c 59 25 0d 08 c0 0c df 20 32 39 30 2c |260,Y%..... 290,| 00001060 59 25 0d 08 ca 09 e6 20 30 2c 37 0d 08 d4 0c f1 |Y%..... 0,7.....| 00001070 89 28 31 29 3b 4c 25 0d 08 de 05 ed 0d 08 e8 06 |.(1);L%.........| 00001080 ef 34 0d 08 f2 18 e3 20 41 25 3d 4c 44 20 b8 20 |.4..... A%=LD . | 00001090 4c 44 2b 31 33 32 20 88 20 34 0d 08 fc 09 21 41 |LD+132 . 4....!A| 000010a0 25 3d 30 0d 09 06 05 ed 0d 09 10 09 53 57 25 3d |%=0.........SW%=| 000010b0 30 0d 09 1a 05 e1 0d ff |0.......| 000010b8