Home » Archimedes archive » Acorn User » AU 1996-08.adf » Regulars » MikeCook/IICtt

MikeCook/IICtt

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 » Archimedes archive » Acorn User » AU 1996-08.adf » Regulars
Filename: MikeCook/IICtt
Read OK:
File size: 089E bytes
Load address: 0000
Exec address: 0000
File contents
   10REM>IICtt
   20PRINT"IIC Transistor Tester"
   30PRINT"By Mike Cook"
   40DIM PBS% 4,PBK% 8,Lead$(12),Config%(12)
   50AA%=&90 : REM Analogue Chip Address
   60DA%=&70 : REM Digital Chip Address
   70PRINT"8574 chip at ";~DA%;" and 8591 chip at ";~AA%
   80PROC_SPinit
   90
  100REPEAT
  110MGain%=0
  120LC%=12
  130PRINT
  140PRINT SPC(15);"Ic          Ib        Gain"
  150FOR A%=0 TO 11
  160IF A%<6 THEN Type$="NPN" ELSE Type$="PNP"
  170Gain%=0
  180REM First test with no base current
  190PROC_Mulout(Config%(A%) EOR &18)
  200IF DeviceD%=FALSE THEN PRINT"IIC Digital chip not responding":END
  210*FX19
  220PRINT Type$;" ";Lead$(A%);"  ";
  230PROC_AIN
  240IF DeviceA%=FALSE THEN PRINT"IIC Analogue chip not responding":END
  250IF ABS(col%)<5 THEN
  260PROC_Mulout(Config%(A%))
  270*FX19
  280PROC_Anlise
  290ELSE
  300PRINT"Not Valid"
  310ENDIF
  320IF Gain%>MGain% THEN MGain%=Gain%:LC%=A%:Atype$=Type$
  330NEXT
  340REM Disconnect transistor
  350PROC_Rsm
  360PRINT
  370IF LC%=12 OR MGain%<2 THEN
  380PRINT"Faulty transistor"
  390ELSE
  400PRINT"This is a ";Atype$;" transistor, pinout "Lead$(LC%);" Gain ";MGain%
  410ENDIF
  420PRINT"Press any key for another test"
  430A$=GET$
  440UNTIL FALSE
  450
  460DEF PROC_Anlise
  470PROC_AIN
  480Ic=((5*col%)/256)/220
  490Ib=((5*bas%)/256)/220000
  500IF Ib<>0 AND Ic<>0 THEN Gain%=Ic/Ib
  510PRINT ;Ic;" ";Ib;" ";Gain%
  520ENDPROC
  530
  540DEF FNtc(N%)
  550IF N%>&7F THEN N%=&FFFFFF00 OR N%
  560=N%
  570
  580DEF PROC_Rsm
  590?PBK%=&FF
  600SYS "XIIC_Control",DA%,PBK%,1 TO ;Fl
  610ENDPROC
  620
  630DEF PROC_Mulout(N%)
  640LOCAL A%,B%,C%,M%
  650PROC_Rsm
  660FOR A%=0 TO 15
  670B%=N% AND 1
  680N%=N%>>1
  690M%=B%<<7 OR A% OR &60
  700?PBK%=M%
  710SYS "XIIC_Control",DA%,PBK%,1 TO ;Fl
  720C%=M%
  730IF A%>7 THEN C%=C% AND &BF ELSE C%=C% AND &DF
  740?PBK%=C%
  750SYS "XIIC_Control",DA%,PBK%,1 TO ;Fl
  760?PBK%=M%
  770SYS "XIIC_Control",DA%,PBK%,1 TO ;Fl
  780NEXT
  790IF (Fl AND 1) =1 THEN DeviceD%=FALSE ELSE DeviceD%=TRUE
  800ENDPROC
  810
  820DEF PROC_AIN
  830LOCAL Fl,B%
  840?PBS%=&30
  850REM Set up the control register
  860SYS "XIIC_Control",AA%,PBS%,1 TO ;Fl
  870SYS "XIIC_Control",AA% OR 1,PBK%,2 TO ;Fl
  880bas%=PBK%?1
  890?PBS%=&31
  900SYS "XIIC_Control",AA%,PBS%,1 TO ;Fl
  910SYS "XIIC_Control",AA% OR 1,PBK%,2 TO ;Fl
  920IF (Fl AND 1) =1 THEN DeviceA%=FALSE ELSE DeviceA%=TRUE
  930col%=PBK%?1
  940col%=FNtc(col%)
  950bas%=FNtc(bas%)
  960ENDPROC
  970
  980REM Initilise switch pattern
  990DEF PROC_SPinit
 1000LOCAL A%
 1010FOR A%=0 TO 11
 1020READ Lead$(A%),Config%(A%)
 1030NEXT
 1040DATA ebc,&3128,cbe,&8528,ecb,&2A28,ceb,&4628,bce,&88A8,bec,&50A8
 1050DATA ebc,&1151,cbe,&0554,ecb,&0A51,ceb,&0652,bce,&08D4,bec,&10D2
 1060ENDPROC

�>IICtt
�"IIC Transistor Tester"
�"By Mike Cook"
()� PBS% 4,PBK% 8,Lead$(12),Config%(12)
2%AA%=&90 : � Analogue Chip Address
<$DA%=&70 : � Digital Chip Address
F3�"8574 chip at ";~DA%;" and 8591 chip at ";~AA%
P�_SPinit
Z
d�
nMGain%=0
x
LC%=12
��
�(� �(15);"Ic          Ib        Gain"
�� A%=0 � 11
�&� A%<6 � Type$="NPN" � Type$="PNP"
�Gain%=0
�%� First test with no base current
��_Mulout(Config%(A%) � &18)
�7� DeviceD%=� � �"IIC Digital chip not responding":�
�	*FX19
�� Type$;" ";Lead$(A%);"  ";
�	�_AIN
�8� DeviceA%=� � �"IIC Analogue chip not responding":�
�� �(col%)<5 �
�_Mulout(Config%(A%))
	*FX19
�_Anlise
"�
,�"Not Valid"
6�
@5� Gain%>MGain% � MGain%=Gain%:LC%=A%:Atype$=Type$
J�
T� Disconnect transistor
^	�_Rsm
h�
r� LC%=12 � MGain%<2 �
|�"Faulty transistor"
��
�I�"This is a ";Atype$;" transistor, pinout "Lead$(LC%);" Gain ";MGain%
��
�%�"Press any key for another test"
�A$=�
�� �
�
�� �_Anlise
�	�_AIN
�Ic=((5*col%)/256)/220
�Ib=((5*bas%)/256)/220000
�!� Ib<>0 � Ic<>0 � Gain%=Ic/Ib
�� ;Ic;" ";Ib;" ";Gain%
�


� �tc(N%)
& � N%>&7F � N%=&FFFFFF00 � N%
0=N%
:
D� �_Rsm
N
?PBK%=&FF
X&ș "XIIC_Control",DA%,PBK%,1 � ;Fl
b�
l
v� �_Mulout(N%)
�� A%,B%,C%,M%
�	�_Rsm
�� A%=0 � 15
�
B%=N% � 1
�N%=N%>>1
�M%=B%<<7 � A% � &60
�?PBK%=M%
�&ș "XIIC_Control",DA%,PBK%,1 � ;Fl
�	C%=M%
�&� A%>7 � C%=C% � &BF � C%=C% � &DF
�?PBK%=C%
�&ș "XIIC_Control",DA%,PBK%,1 � ;Fl
�?PBK%=M%
&ș "XIIC_Control",DA%,PBK%,1 � ;Fl
�
+� (Fl � 1) =1 � DeviceD%=� � DeviceD%=�
 �
*
4� �_AIN
>� Fl,B%
H
?PBS%=&30
R!� Set up the control register
\&ș "XIIC_Control",AA%,PBS%,1 � ;Fl
f*ș "XIIC_Control",AA% � 1,PBK%,2 � ;Fl
pbas%=PBK%?1
z
?PBS%=&31
�&ș "XIIC_Control",AA%,PBS%,1 � ;Fl
�*ș "XIIC_Control",AA% � 1,PBK%,2 � ;Fl
�+� (Fl � 1) =1 � DeviceA%=� � DeviceA%=�
�col%=PBK%?1
�col%=�tc(col%)
�bas%=�tc(bas%)
��
�
�� Initilise switch pattern
�� �_SPinit
�� A%
�� A%=0 � 11
�� Lead$(A%),Config%(A%)
�
A� ebc,&3128,cbe,&8528,ecb,&2A28,ceb,&4628,bce,&88A8,bec,&50A8
A� ebc,&1151,cbe,&0554,ecb,&0A51,ceb,&0652,bce,&08D4,bec,&10D2
$�
�
00000000  0d 00 0a 0b f4 3e 49 49  43 74 74 0d 00 14 1c f1  |.....>IICtt.....|
00000010  22 49 49 43 20 54 72 61  6e 73 69 73 74 6f 72 20  |"IIC Transistor |
00000020  54 65 73 74 65 72 22 0d  00 1e 13 f1 22 42 79 20  |Tester"....."By |
00000030  4d 69 6b 65 20 43 6f 6f  6b 22 0d 00 28 29 de 20  |Mike Cook"..(). |
00000040  50 42 53 25 20 34 2c 50  42 4b 25 20 38 2c 4c 65  |PBS% 4,PBK% 8,Le|
00000050  61 64 24 28 31 32 29 2c  43 6f 6e 66 69 67 25 28  |ad$(12),Config%(|
00000060  31 32 29 0d 00 32 25 41  41 25 3d 26 39 30 20 3a  |12)..2%AA%=&90 :|
00000070  20 f4 20 41 6e 61 6c 6f  67 75 65 20 43 68 69 70  | . Analogue Chip|
00000080  20 41 64 64 72 65 73 73  0d 00 3c 24 44 41 25 3d  | Address..<$DA%=|
00000090  26 37 30 20 3a 20 f4 20  44 69 67 69 74 61 6c 20  |&70 : . Digital |
000000a0  43 68 69 70 20 41 64 64  72 65 73 73 0d 00 46 33  |Chip Address..F3|
000000b0  f1 22 38 35 37 34 20 63  68 69 70 20 61 74 20 22  |."8574 chip at "|
000000c0  3b 7e 44 41 25 3b 22 20  61 6e 64 20 38 35 39 31  |;~DA%;" and 8591|
000000d0  20 63 68 69 70 20 61 74  20 22 3b 7e 41 41 25 0d  | chip at ";~AA%.|
000000e0  00 50 0c f2 5f 53 50 69  6e 69 74 0d 00 5a 04 0d  |.P.._SPinit..Z..|
000000f0  00 64 05 f5 0d 00 6e 0c  4d 47 61 69 6e 25 3d 30  |.d....n.MGain%=0|
00000100  0d 00 78 0a 4c 43 25 3d  31 32 0d 00 82 05 f1 0d  |..x.LC%=12......|
00000110  00 8c 28 f1 20 89 28 31  35 29 3b 22 49 63 20 20  |..(. .(15);"Ic  |
00000120  20 20 20 20 20 20 20 20  49 62 20 20 20 20 20 20  |        Ib      |
00000130  20 20 47 61 69 6e 22 0d  00 96 0f e3 20 41 25 3d  |  Gain"..... A%=|
00000140  30 20 b8 20 31 31 0d 00  a0 26 e7 20 41 25 3c 36  |0 . 11...&. A%<6|
00000150  20 8c 20 54 79 70 65 24  3d 22 4e 50 4e 22 20 8b  | . Type$="NPN" .|
00000160  20 54 79 70 65 24 3d 22  50 4e 50 22 0d 00 aa 0b  | Type$="PNP"....|
00000170  47 61 69 6e 25 3d 30 0d  00 b4 25 f4 20 46 69 72  |Gain%=0...%. Fir|
00000180  73 74 20 74 65 73 74 20  77 69 74 68 20 6e 6f 20  |st test with no |
00000190  62 61 73 65 20 63 75 72  72 65 6e 74 0d 00 be 1f  |base current....|
000001a0  f2 5f 4d 75 6c 6f 75 74  28 43 6f 6e 66 69 67 25  |._Mulout(Config%|
000001b0  28 41 25 29 20 82 20 26  31 38 29 0d 00 c8 37 e7  |(A%) . &18)...7.|
000001c0  20 44 65 76 69 63 65 44  25 3d a3 20 8c 20 f1 22  | DeviceD%=. . ."|
000001d0  49 49 43 20 44 69 67 69  74 61 6c 20 63 68 69 70  |IIC Digital chip|
000001e0  20 6e 6f 74 20 72 65 73  70 6f 6e 64 69 6e 67 22  | not responding"|
000001f0  3a e0 0d 00 d2 09 2a 46  58 31 39 0d 00 dc 1f f1  |:.....*FX19.....|
00000200  20 54 79 70 65 24 3b 22  20 22 3b 4c 65 61 64 24  | Type$;" ";Lead$|
00000210  28 41 25 29 3b 22 20 20  22 3b 0d 00 e6 09 f2 5f  |(A%);"  ";....._|
00000220  41 49 4e 0d 00 f0 38 e7  20 44 65 76 69 63 65 41  |AIN...8. DeviceA|
00000230  25 3d a3 20 8c 20 f1 22  49 49 43 20 41 6e 61 6c  |%=. . ."IIC Anal|
00000240  6f 67 75 65 20 63 68 69  70 20 6e 6f 74 20 72 65  |ogue chip not re|
00000250  73 70 6f 6e 64 69 6e 67  22 3a e0 0d 00 fa 11 e7  |sponding":......|
00000260  20 94 28 63 6f 6c 25 29  3c 35 20 8c 0d 01 04 19  | .(col%)<5 .....|
00000270  f2 5f 4d 75 6c 6f 75 74  28 43 6f 6e 66 69 67 25  |._Mulout(Config%|
00000280  28 41 25 29 29 0d 01 0e  09 2a 46 58 31 39 0d 01  |(A%))....*FX19..|
00000290  18 0c f2 5f 41 6e 6c 69  73 65 0d 01 22 05 cc 0d  |..._Anlise.."...|
000002a0  01 2c 10 f1 22 4e 6f 74  20 56 61 6c 69 64 22 0d  |.,.."Not Valid".|
000002b0  01 36 05 cd 0d 01 40 35  e7 20 47 61 69 6e 25 3e  |.6....@5. Gain%>|
000002c0  4d 47 61 69 6e 25 20 8c  20 4d 47 61 69 6e 25 3d  |MGain% . MGain%=|
000002d0  47 61 69 6e 25 3a 4c 43  25 3d 41 25 3a 41 74 79  |Gain%:LC%=A%:Aty|
000002e0  70 65 24 3d 54 79 70 65  24 0d 01 4a 05 ed 0d 01  |pe$=Type$..J....|
000002f0  54 1b f4 20 44 69 73 63  6f 6e 6e 65 63 74 20 74  |T.. Disconnect t|
00000300  72 61 6e 73 69 73 74 6f  72 0d 01 5e 09 f2 5f 52  |ransistor..^.._R|
00000310  73 6d 0d 01 68 05 f1 0d  01 72 19 e7 20 4c 43 25  |sm..h....r.. LC%|
00000320  3d 31 32 20 84 20 4d 47  61 69 6e 25 3c 32 20 8c  |=12 . MGain%<2 .|
00000330  0d 01 7c 18 f1 22 46 61  75 6c 74 79 20 74 72 61  |..|.."Faulty tra|
00000340  6e 73 69 73 74 6f 72 22  0d 01 86 05 cc 0d 01 90  |nsistor"........|
00000350  49 f1 22 54 68 69 73 20  69 73 20 61 20 22 3b 41  |I."This is a ";A|
00000360  74 79 70 65 24 3b 22 20  74 72 61 6e 73 69 73 74  |type$;" transist|
00000370  6f 72 2c 20 70 69 6e 6f  75 74 20 22 4c 65 61 64  |or, pinout "Lead|
00000380  24 28 4c 43 25 29 3b 22  20 47 61 69 6e 20 22 3b  |$(LC%);" Gain ";|
00000390  4d 47 61 69 6e 25 0d 01  9a 05 cd 0d 01 a4 25 f1  |MGain%........%.|
000003a0  22 50 72 65 73 73 20 61  6e 79 20 6b 65 79 20 66  |"Press any key f|
000003b0  6f 72 20 61 6e 6f 74 68  65 72 20 74 65 73 74 22  |or another test"|
000003c0  0d 01 ae 08 41 24 3d be  0d 01 b8 07 fd 20 a3 0d  |....A$=...... ..|
000003d0  01 c2 04 0d 01 cc 0e dd  20 f2 5f 41 6e 6c 69 73  |........ ._Anlis|
000003e0  65 0d 01 d6 09 f2 5f 41  49 4e 0d 01 e0 19 49 63  |e....._AIN....Ic|
000003f0  3d 28 28 35 2a 63 6f 6c  25 29 2f 32 35 36 29 2f  |=((5*col%)/256)/|
00000400  32 32 30 0d 01 ea 1c 49  62 3d 28 28 35 2a 62 61  |220....Ib=((5*ba|
00000410  73 25 29 2f 32 35 36 29  2f 32 32 30 30 30 30 0d  |s%)/256)/220000.|
00000420  01 f4 21 e7 20 49 62 3c  3e 30 20 80 20 49 63 3c  |..!. Ib<>0 . Ic<|
00000430  3e 30 20 8c 20 47 61 69  6e 25 3d 49 63 2f 49 62  |>0 . Gain%=Ic/Ib|
00000440  0d 01 fe 1a f1 20 3b 49  63 3b 22 20 22 3b 49 62  |..... ;Ic;" ";Ib|
00000450  3b 22 20 22 3b 47 61 69  6e 25 0d 02 08 05 e1 0d  |;" ";Gain%......|
00000460  02 12 04 0d 02 1c 0d dd  20 a4 74 63 28 4e 25 29  |........ .tc(N%)|
00000470  0d 02 26 20 e7 20 4e 25  3e 26 37 46 20 8c 20 4e  |..& . N%>&7F . N|
00000480  25 3d 26 46 46 46 46 46  46 30 30 20 84 20 4e 25  |%=&FFFFFF00 . N%|
00000490  0d 02 30 07 3d 4e 25 0d  02 3a 04 0d 02 44 0b dd  |..0.=N%..:...D..|
000004a0  20 f2 5f 52 73 6d 0d 02  4e 0d 3f 50 42 4b 25 3d  | ._Rsm..N.?PBK%=|
000004b0  26 46 46 0d 02 58 26 c8  99 20 22 58 49 49 43 5f  |&FF..X&.. "XIIC_|
000004c0  43 6f 6e 74 72 6f 6c 22  2c 44 41 25 2c 50 42 4b  |Control",DA%,PBK|
000004d0  25 2c 31 20 b8 20 3b 46  6c 0d 02 62 05 e1 0d 02  |%,1 . ;Fl..b....|
000004e0  6c 04 0d 02 76 12 dd 20  f2 5f 4d 75 6c 6f 75 74  |l...v.. ._Mulout|
000004f0  28 4e 25 29 0d 02 80 11  ea 20 41 25 2c 42 25 2c  |(N%)..... A%,B%,|
00000500  43 25 2c 4d 25 0d 02 8a  09 f2 5f 52 73 6d 0d 02  |C%,M%....._Rsm..|
00000510  94 0f e3 20 41 25 3d 30  20 b8 20 31 35 0d 02 9e  |... A%=0 . 15...|
00000520  0d 42 25 3d 4e 25 20 80  20 31 0d 02 a8 0c 4e 25  |.B%=N% . 1....N%|
00000530  3d 4e 25 3e 3e 31 0d 02  b2 17 4d 25 3d 42 25 3c  |=N%>>1....M%=B%<|
00000540  3c 37 20 84 20 41 25 20  84 20 26 36 30 0d 02 bc  |<7 . A% . &60...|
00000550  0c 3f 50 42 4b 25 3d 4d  25 0d 02 c6 26 c8 99 20  |.?PBK%=M%...&.. |
00000560  22 58 49 49 43 5f 43 6f  6e 74 72 6f 6c 22 2c 44  |"XIIC_Control",D|
00000570  41 25 2c 50 42 4b 25 2c  31 20 b8 20 3b 46 6c 0d  |A%,PBK%,1 . ;Fl.|
00000580  02 d0 09 43 25 3d 4d 25  0d 02 da 26 e7 20 41 25  |...C%=M%...&. A%|
00000590  3e 37 20 8c 20 43 25 3d  43 25 20 80 20 26 42 46  |>7 . C%=C% . &BF|
000005a0  20 8b 20 43 25 3d 43 25  20 80 20 26 44 46 0d 02  | . C%=C% . &DF..|
000005b0  e4 0c 3f 50 42 4b 25 3d  43 25 0d 02 ee 26 c8 99  |..?PBK%=C%...&..|
000005c0  20 22 58 49 49 43 5f 43  6f 6e 74 72 6f 6c 22 2c  | "XIIC_Control",|
000005d0  44 41 25 2c 50 42 4b 25  2c 31 20 b8 20 3b 46 6c  |DA%,PBK%,1 . ;Fl|
000005e0  0d 02 f8 0c 3f 50 42 4b  25 3d 4d 25 0d 03 02 26  |....?PBK%=M%...&|
000005f0  c8 99 20 22 58 49 49 43  5f 43 6f 6e 74 72 6f 6c  |.. "XIIC_Control|
00000600  22 2c 44 41 25 2c 50 42  4b 25 2c 31 20 b8 20 3b  |",DA%,PBK%,1 . ;|
00000610  46 6c 0d 03 0c 05 ed 0d  03 16 2b e7 20 28 46 6c  |Fl........+. (Fl|
00000620  20 80 20 31 29 20 3d 31  20 8c 20 44 65 76 69 63  | . 1) =1 . Devic|
00000630  65 44 25 3d a3 20 8b 20  44 65 76 69 63 65 44 25  |eD%=. . DeviceD%|
00000640  3d b9 0d 03 20 05 e1 0d  03 2a 04 0d 03 34 0b dd  |=... ....*...4..|
00000650  20 f2 5f 41 49 4e 0d 03  3e 0b ea 20 46 6c 2c 42  | ._AIN..>.. Fl,B|
00000660  25 0d 03 48 0d 3f 50 42  53 25 3d 26 33 30 0d 03  |%..H.?PBS%=&30..|
00000670  52 21 f4 20 53 65 74 20  75 70 20 74 68 65 20 63  |R!. Set up the c|
00000680  6f 6e 74 72 6f 6c 20 72  65 67 69 73 74 65 72 0d  |ontrol register.|
00000690  03 5c 26 c8 99 20 22 58  49 49 43 5f 43 6f 6e 74  |.\&.. "XIIC_Cont|
000006a0  72 6f 6c 22 2c 41 41 25  2c 50 42 53 25 2c 31 20  |rol",AA%,PBS%,1 |
000006b0  b8 20 3b 46 6c 0d 03 66  2a c8 99 20 22 58 49 49  |. ;Fl..f*.. "XII|
000006c0  43 5f 43 6f 6e 74 72 6f  6c 22 2c 41 41 25 20 84  |C_Control",AA% .|
000006d0  20 31 2c 50 42 4b 25 2c  32 20 b8 20 3b 46 6c 0d  | 1,PBK%,2 . ;Fl.|
000006e0  03 70 0f 62 61 73 25 3d  50 42 4b 25 3f 31 0d 03  |.p.bas%=PBK%?1..|
000006f0  7a 0d 3f 50 42 53 25 3d  26 33 31 0d 03 84 26 c8  |z.?PBS%=&31...&.|
00000700  99 20 22 58 49 49 43 5f  43 6f 6e 74 72 6f 6c 22  |. "XIIC_Control"|
00000710  2c 41 41 25 2c 50 42 53  25 2c 31 20 b8 20 3b 46  |,AA%,PBS%,1 . ;F|
00000720  6c 0d 03 8e 2a c8 99 20  22 58 49 49 43 5f 43 6f  |l...*.. "XIIC_Co|
00000730  6e 74 72 6f 6c 22 2c 41  41 25 20 84 20 31 2c 50  |ntrol",AA% . 1,P|
00000740  42 4b 25 2c 32 20 b8 20  3b 46 6c 0d 03 98 2b e7  |BK%,2 . ;Fl...+.|
00000750  20 28 46 6c 20 80 20 31  29 20 3d 31 20 8c 20 44  | (Fl . 1) =1 . D|
00000760  65 76 69 63 65 41 25 3d  a3 20 8b 20 44 65 76 69  |eviceA%=. . Devi|
00000770  63 65 41 25 3d b9 0d 03  a2 0f 63 6f 6c 25 3d 50  |ceA%=.....col%=P|
00000780  42 4b 25 3f 31 0d 03 ac  12 63 6f 6c 25 3d a4 74  |BK%?1....col%=.t|
00000790  63 28 63 6f 6c 25 29 0d  03 b6 12 62 61 73 25 3d  |c(col%)....bas%=|
000007a0  a4 74 63 28 62 61 73 25  29 0d 03 c0 05 e1 0d 03  |.tc(bas%).......|
000007b0  ca 04 0d 03 d4 1e f4 20  49 6e 69 74 69 6c 69 73  |....... Initilis|
000007c0  65 20 73 77 69 74 63 68  20 70 61 74 74 65 72 6e  |e switch pattern|
000007d0  0d 03 de 0e dd 20 f2 5f  53 50 69 6e 69 74 0d 03  |..... ._SPinit..|
000007e0  e8 08 ea 20 41 25 0d 03  f2 0f e3 20 41 25 3d 30  |... A%..... A%=0|
000007f0  20 b8 20 31 31 0d 03 fc  1b f3 20 4c 65 61 64 24  | . 11..... Lead$|
00000800  28 41 25 29 2c 43 6f 6e  66 69 67 25 28 41 25 29  |(A%),Config%(A%)|
00000810  0d 04 06 05 ed 0d 04 10  41 dc 20 65 62 63 2c 26  |........A. ebc,&|
00000820  33 31 32 38 2c 63 62 65  2c 26 38 35 32 38 2c 65  |3128,cbe,&8528,e|
00000830  63 62 2c 26 32 41 32 38  2c 63 65 62 2c 26 34 36  |cb,&2A28,ceb,&46|
00000840  32 38 2c 62 63 65 2c 26  38 38 41 38 2c 62 65 63  |28,bce,&88A8,bec|
00000850  2c 26 35 30 41 38 0d 04  1a 41 dc 20 65 62 63 2c  |,&50A8...A. ebc,|
00000860  26 31 31 35 31 2c 63 62  65 2c 26 30 35 35 34 2c  |&1151,cbe,&0554,|
00000870  65 63 62 2c 26 30 41 35  31 2c 63 65 62 2c 26 30  |ecb,&0A51,ceb,&0|
00000880  36 35 32 2c 62 63 65 2c  26 30 38 44 34 2c 62 65  |652,bce,&08D4,be|
00000890  63 2c 26 31 30 44 32 0d  04 24 05 e1 0d ff        |c,&10D2..$....|
0000089e