Home » Archimedes archive » Acorn Computing » 1994 03 subscription disc.adf » 9403s » BodyBuild/Bi-Di_Mon

BodyBuild/Bi-Di_Mon

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 Computing » 1994 03 subscription disc.adf » 9403s
Filename: BodyBuild/Bi-Di_Mon
Read OK:
File size: 091E bytes
Load address: 0000
Exec address: 0000
File contents
   10REM >Bi-Di_Mon
   20REM Bi Directional Port Monitor
   30REM By Mike Cook Copyright Musbury Consultants
   40MODE 0
   50Iput%=FALSE
   60A%=0
   70ON ERROR 41
   80SYS"Parallel_HardwareAddress" TO A%,B%,C%
   90ON ERROR OFF
  100IF A%<>0 THEN
  110REM Halt%=OPENOUT("parallel:")
  120PROC_PORT
  130REM CLOSE#Halt%
  140ELSE
  150PRINT"This Computer has not got a Bi Directional I/O port"
  160ENDIF
  170END
  180
  190DEF PROC_PORT
  200IP%=0:OP%=0
  210REM Find Intial Values
  220SYS"Parallel_Op",0 TO ,Dat%,Sat%
  230SYS"Parallel_Op",2,0,&3F TO ,Cont%
  240REPEAT
  250PROC_INST
  260A$=GET$
  270IF A$="1" THEN PROC_Tog
  280IF A$="2" THEN PROC_Key
  290IF A$="3" THEN PROC_Cont
  300IF A$="4" THEN PROC_Rin
  310UNTIL A$="5"
  320ENDPROC
  330
  340DEF PROC_INST
  350CLS
  360PRINT"Bi Directional Port Monitor"
  370PRINTSPC(6);"By Mike Cook"
  380PRINT:PRINT
  390PRINT"1 - Binary Count on Data Outputs"
  400PRINT"2 - Keyboard value on Data Outputs"
  410PRINT"3 - Keyboard value to Control Outputs"
  420PRINT"4 - Read the values on Data Inputs"
  430PRINT"5 - To Quit"
  440ENDPROC
  450
  460DEF PROC_Tog
  470PROC_OPmode
  480PRINT"Binary Count on Data Outputs"
  490PRINT"Space bar to quit"
  500REPEAT
  510FOR A%=0 TO 255
  520SYS"Parallel_Op",1,A%
  530NEXT
  540B%=INKEY(-99)
  550UNTIL B%<>0
  560ENDPROC
  570
  580DEF PROC_Key
  590PROC_OPmode
  600PRINT"Send number to Data Outputs "
  610PRINT"Value of over 255 to end"
  620REPEAT
  630PRINTTAB(0,16)
  640INPUT"Value to send to Data Outputs ",V%
  650IF V%<256 THEN
  660Dat%=V%
  670SYS"Parallel_Op",1,Dat%
  680ENDIF
  690PROC_DISP(Dat%,Sat%,Cont%)
  700UNTIL V%>255
  710ENDPROC
  720
  730DEF PROC_Cont
  740PRINT"Send number to Control Outputs "
  750PRINT"Value of over 15 to end"
  760PROC_OPmode
  770REPEAT
  780INPUT"Value to send to Data Outputs ",V%
  790IF V%<16 THEN
  800Cont%=V% AND &F)
  810Vv%=Cont% EOR &F
  820SYS"Parallel_Op",2,Vv%,&30
  830ENDIF
  840PROC_DISP(Dat%,Sat%,Cont%)
  850UNTIL V%>15
  860ENDPROC
  870
  880DEF PROC_Rin
  890PROC_IPmode
  900PRINTTAB(0,10)"Space bar to stop"
  910REPEAT
  920SYS"Parallel_Op",0 TO ,Dat%,Stat%
  930PROC_DISP(Dat%,Sat%,Cont%)
  940B%=INKEY(-99)
  950UNTIL B%<>0
  960ENDPROC
  970
  980DEF PROC_OPmode
  990SYS"Parallel_Op",2,0,&1F
 1000Iput%=FALSE
 1010ENDPROC
 1020
 1030DEF PROC_IPmode
 1040SYS"Parallel_Op",2,&20,&1F
 1050Iput%=TRUE
 1060ENDPROC
 1070
 1080DEF PROC_DISP(D%,S%,C%)
 1090LOCAL A%
 1100PRINTTAB(0,12)
 1110PRINTSPC(12);~D%;SPC(19);~S%>>3,SPC(10);~C% AND &F
 1120IF Iput% THEN PRINT"        Data  Input            Status           Control" ELSE PRINT"        Data  Output           Status           Control"
 1130PRINT" 7  6  5  4  3  2  1  0  -  B  A  P  S  E  -  S  I  A  S"
 1140PRINT
 1150FOR A%=0 TO 7
 1160IF (D% AND &80)=0 THEN PRINT" 0 "; ELSE PRINT" 1 ";
 1170D%=D%<<1
 1180NEXT
 1190PRINTSPC(3);
 1200FOR A%=0 TO 4
 1210IF (S% AND &80)=0 THEN PRINT" 0 "; ELSE PRINT" 1 ";
 1220S%=S%<<1
 1230NEXT
 1240PRINTSPC(3);
 1250FOR A%=0 TO 3
 1260IF (C% AND &8)=0 THEN PRINT" 0 "; ELSE PRINT" 1 ";
 1270C%=C%<<1
 1280NEXT
 1290PRINT
 1300ENDPROC

� >Bi-Di_Mon
!� Bi Directional Port Monitor
0� By Mike Cook Copyright Musbury Consultants
(� 0
2Iput%=�
<A%=0
F
� � 41
P+ș"Parallel_HardwareAddress" � A%,B%,C%
Z	� � �
d
� A%<>0 �
n � Halt%=OPENOUT("parallel:")
x
�_PORT
�� CLOSE#Halt%
��
�:�"This Computer has not got a Bi Directional I/O port"
��
��
�
�� �_PORT
�IP%=0:OP%=0
�� Find Intial Values
�"ș"Parallel_Op",0 � ,Dat%,Sat%
�$ș"Parallel_Op",2,0,&3F � ,Cont%
��
�
�_INST
A$=�
� A$="1" � �_Tog
� A$="2" � �_Key
"� A$="3" � �_Cont
,� A$="4" � �_Rin
6� A$="5"
@�
J
T� �_INST
^�
h"�"Bi Directional Port Monitor"
r�(6);"By Mike Cook"
|�:�
�'�"1 - Binary Count on Data Outputs"
�)�"2 - Keyboard value on Data Outputs"
�,�"3 - Keyboard value to Control Outputs"
�)�"4 - Read the values on Data Inputs"
��"5 - To Quit"
��
�
�� �_Tog
��_OPmode
�#�"Binary Count on Data Outputs"
��"Space bar to quit"
��
�� A%=0 � 255
ș"Parallel_Op",1,A%
�

B%=�(-99)
&� B%<>0
0�
:
D� �_Key
N�_OPmode
X#�"Send number to Data Outputs "
b�"Value of over 255 to end"
l�
v�0,16)
�(�"Value to send to Data Outputs ",V%
�� V%<256 �
�Dat%=V%
�ș"Parallel_Op",1,Dat%
��
��_DISP(Dat%,Sat%,Cont%)
�� V%>255
��
�
�� �_Cont
�&�"Send number to Control Outputs "
��"Value of over 15 to end"
��_OPmode
�
(�"Value to send to Data Outputs ",V%

� V%<16 �
 Cont%=V% � &F)
*Vv%=Cont% � &F
4ș"Parallel_Op",2,Vv%,&30
>�
H�_DISP(Dat%,Sat%,Cont%)
R� V%>15
\�
f
p� �_Rin
z�_IPmode
��0,10)"Space bar to stop"
��
�#ș"Parallel_Op",0 � ,Dat%,Stat%
��_DISP(Dat%,Sat%,Cont%)
�
B%=�(-99)
�� B%<>0
��
�
�� �_OPmode
�ș"Parallel_Op",2,0,&1F
�Iput%=�
��
�
� �_IPmode
ș"Parallel_Op",2,&20,&1F
Iput%=�
$�
.
8� �_DISP(D%,S%,C%)
B� A%
L�0,12)
V*�(12);~D%;�(19);~S%>>3,�(10);~C% � &F
`�� Iput% � �"        Data  Input            Status           Control" � �"        Data  Output           Status           Control"
j?�" 7  6  5  4  3  2  1  0  -  B  A  P  S  E  -  S  I  A  S"
t�
~� A%=0 � 7
�&� (D% � &80)=0 � �" 0 "; � �" 1 ";
�D%=D%<<1
��
�
�(3);
�� A%=0 � 4
�&� (S% � &80)=0 � �" 0 "; � �" 1 ";
�S%=S%<<1
��
�
�(3);
�� A%=0 � 3
�%� (C% � &8)=0 � �" 0 "; � �" 1 ";
�C%=C%<<1
�

�
�
�
00000000  0d 00 0a 10 f4 20 3e 42  69 2d 44 69 5f 4d 6f 6e  |..... >Bi-Di_Mon|
00000010  0d 00 14 21 f4 20 42 69  20 44 69 72 65 63 74 69  |...!. Bi Directi|
00000020  6f 6e 61 6c 20 50 6f 72  74 20 4d 6f 6e 69 74 6f  |onal Port Monito|
00000030  72 0d 00 1e 30 f4 20 42  79 20 4d 69 6b 65 20 43  |r...0. By Mike C|
00000040  6f 6f 6b 20 43 6f 70 79  72 69 67 68 74 20 4d 75  |ook Copyright Mu|
00000050  73 62 75 72 79 20 43 6f  6e 73 75 6c 74 61 6e 74  |sbury Consultant|
00000060  73 0d 00 28 07 eb 20 30  0d 00 32 0b 49 70 75 74  |s..(.. 0..2.Iput|
00000070  25 3d a3 0d 00 3c 08 41  25 3d 30 0d 00 46 0a ee  |%=...<.A%=0..F..|
00000080  20 85 20 34 31 0d 00 50  2b c8 99 22 50 61 72 61  | . 41..P+.."Para|
00000090  6c 6c 65 6c 5f 48 61 72  64 77 61 72 65 41 64 64  |llel_HardwareAdd|
000000a0  72 65 73 73 22 20 b8 20  41 25 2c 42 25 2c 43 25  |ress" . A%,B%,C%|
000000b0  0d 00 5a 09 ee 20 85 20  87 0d 00 64 0d e7 20 41  |..Z.. . ...d.. A|
000000c0  25 3c 3e 30 20 8c 0d 00  6e 20 f4 20 48 61 6c 74  |%<>0 ...n . Halt|
000000d0  25 3d 4f 50 45 4e 4f 55  54 28 22 70 61 72 61 6c  |%=OPENOUT("paral|
000000e0  6c 65 6c 3a 22 29 0d 00  78 0a f2 5f 50 4f 52 54  |lel:")..x.._PORT|
000000f0  0d 00 82 11 f4 20 43 4c  4f 53 45 23 48 61 6c 74  |..... CLOSE#Halt|
00000100  25 0d 00 8c 05 cc 0d 00  96 3a f1 22 54 68 69 73  |%........:."This|
00000110  20 43 6f 6d 70 75 74 65  72 20 68 61 73 20 6e 6f  | Computer has no|
00000120  74 20 67 6f 74 20 61 20  42 69 20 44 69 72 65 63  |t got a Bi Direc|
00000130  74 69 6f 6e 61 6c 20 49  2f 4f 20 70 6f 72 74 22  |tional I/O port"|
00000140  0d 00 a0 05 cd 0d 00 aa  05 e0 0d 00 b4 04 0d 00  |................|
00000150  be 0c dd 20 f2 5f 50 4f  52 54 0d 00 c8 0f 49 50  |... ._PORT....IP|
00000160  25 3d 30 3a 4f 50 25 3d  30 0d 00 d2 18 f4 20 46  |%=0:OP%=0..... F|
00000170  69 6e 64 20 49 6e 74 69  61 6c 20 56 61 6c 75 65  |ind Intial Value|
00000180  73 0d 00 dc 22 c8 99 22  50 61 72 61 6c 6c 65 6c  |s...".."Parallel|
00000190  5f 4f 70 22 2c 30 20 b8  20 2c 44 61 74 25 2c 53  |_Op",0 . ,Dat%,S|
000001a0  61 74 25 0d 00 e6 24 c8  99 22 50 61 72 61 6c 6c  |at%...$.."Parall|
000001b0  65 6c 5f 4f 70 22 2c 32  2c 30 2c 26 33 46 20 b8  |el_Op",2,0,&3F .|
000001c0  20 2c 43 6f 6e 74 25 0d  00 f0 05 f5 0d 00 fa 0a  | ,Cont%.........|
000001d0  f2 5f 49 4e 53 54 0d 01  04 08 41 24 3d be 0d 01  |._INST....A$=...|
000001e0  0e 14 e7 20 41 24 3d 22  31 22 20 8c 20 f2 5f 54  |... A$="1" . ._T|
000001f0  6f 67 0d 01 18 14 e7 20  41 24 3d 22 32 22 20 8c  |og..... A$="2" .|
00000200  20 f2 5f 4b 65 79 0d 01  22 15 e7 20 41 24 3d 22  | ._Key..".. A$="|
00000210  33 22 20 8c 20 f2 5f 43  6f 6e 74 0d 01 2c 14 e7  |3" . ._Cont..,..|
00000220  20 41 24 3d 22 34 22 20  8c 20 f2 5f 52 69 6e 0d  | A$="4" . ._Rin.|
00000230  01 36 0c fd 20 41 24 3d  22 35 22 0d 01 40 05 e1  |.6.. A$="5"..@..|
00000240  0d 01 4a 04 0d 01 54 0c  dd 20 f2 5f 49 4e 53 54  |..J...T.. ._INST|
00000250  0d 01 5e 05 db 0d 01 68  22 f1 22 42 69 20 44 69  |..^....h"."Bi Di|
00000260  72 65 63 74 69 6f 6e 61  6c 20 50 6f 72 74 20 4d  |rectional Port M|
00000270  6f 6e 69 74 6f 72 22 0d  01 72 18 f1 89 28 36 29  |onitor"..r...(6)|
00000280  3b 22 42 79 20 4d 69 6b  65 20 43 6f 6f 6b 22 0d  |;"By Mike Cook".|
00000290  01 7c 07 f1 3a f1 0d 01  86 27 f1 22 31 20 2d 20  |.|..:....'."1 - |
000002a0  42 69 6e 61 72 79 20 43  6f 75 6e 74 20 6f 6e 20  |Binary Count on |
000002b0  44 61 74 61 20 4f 75 74  70 75 74 73 22 0d 01 90  |Data Outputs"...|
000002c0  29 f1 22 32 20 2d 20 4b  65 79 62 6f 61 72 64 20  |)."2 - Keyboard |
000002d0  76 61 6c 75 65 20 6f 6e  20 44 61 74 61 20 4f 75  |value on Data Ou|
000002e0  74 70 75 74 73 22 0d 01  9a 2c f1 22 33 20 2d 20  |tputs"...,."3 - |
000002f0  4b 65 79 62 6f 61 72 64  20 76 61 6c 75 65 20 74  |Keyboard value t|
00000300  6f 20 43 6f 6e 74 72 6f  6c 20 4f 75 74 70 75 74  |o Control Output|
00000310  73 22 0d 01 a4 29 f1 22  34 20 2d 20 52 65 61 64  |s"...)."4 - Read|
00000320  20 74 68 65 20 76 61 6c  75 65 73 20 6f 6e 20 44  | the values on D|
00000330  61 74 61 20 49 6e 70 75  74 73 22 0d 01 ae 12 f1  |ata Inputs".....|
00000340  22 35 20 2d 20 54 6f 20  51 75 69 74 22 0d 01 b8  |"5 - To Quit"...|
00000350  05 e1 0d 01 c2 04 0d 01  cc 0b dd 20 f2 5f 54 6f  |........... ._To|
00000360  67 0d 01 d6 0c f2 5f 4f  50 6d 6f 64 65 0d 01 e0  |g....._OPmode...|
00000370  23 f1 22 42 69 6e 61 72  79 20 43 6f 75 6e 74 20  |#."Binary Count |
00000380  6f 6e 20 44 61 74 61 20  4f 75 74 70 75 74 73 22  |on Data Outputs"|
00000390  0d 01 ea 18 f1 22 53 70  61 63 65 20 62 61 72 20  |....."Space bar |
000003a0  74 6f 20 71 75 69 74 22  0d 01 f4 05 f5 0d 01 fe  |to quit"........|
000003b0  10 e3 20 41 25 3d 30 20  b8 20 32 35 35 0d 02 08  |.. A%=0 . 255...|
000003c0  18 c8 99 22 50 61 72 61  6c 6c 65 6c 5f 4f 70 22  |..."Parallel_Op"|
000003d0  2c 31 2c 41 25 0d 02 12  05 ed 0d 02 1c 0d 42 25  |,1,A%.........B%|
000003e0  3d a6 28 2d 39 39 29 0d  02 26 0b fd 20 42 25 3c  |=.(-99)..&.. B%<|
000003f0  3e 30 0d 02 30 05 e1 0d  02 3a 04 0d 02 44 0b dd  |>0..0....:...D..|
00000400  20 f2 5f 4b 65 79 0d 02  4e 0c f2 5f 4f 50 6d 6f  | ._Key..N.._OPmo|
00000410  64 65 0d 02 58 23 f1 22  53 65 6e 64 20 6e 75 6d  |de..X#."Send num|
00000420  62 65 72 20 74 6f 20 44  61 74 61 20 4f 75 74 70  |ber to Data Outp|
00000430  75 74 73 20 22 0d 02 62  1f f1 22 56 61 6c 75 65  |uts "..b.."Value|
00000440  20 6f 66 20 6f 76 65 72  20 32 35 35 20 74 6f 20  | of over 255 to |
00000450  65 6e 64 22 0d 02 6c 05  f5 0d 02 76 0b f1 8a 30  |end"..l....v...0|
00000460  2c 31 36 29 0d 02 80 28  e8 22 56 61 6c 75 65 20  |,16)...(."Value |
00000470  74 6f 20 73 65 6e 64 20  74 6f 20 44 61 74 61 20  |to send to Data |
00000480  4f 75 74 70 75 74 73 20  22 2c 56 25 0d 02 8a 0e  |Outputs ",V%....|
00000490  e7 20 56 25 3c 32 35 36  20 8c 0d 02 94 0b 44 61  |. V%<256 .....Da|
000004a0  74 25 3d 56 25 0d 02 9e  1a c8 99 22 50 61 72 61  |t%=V%......"Para|
000004b0  6c 6c 65 6c 5f 4f 70 22  2c 31 2c 44 61 74 25 0d  |llel_Op",1,Dat%.|
000004c0  02 a8 05 cd 0d 02 b2 1b  f2 5f 44 49 53 50 28 44  |........._DISP(D|
000004d0  61 74 25 2c 53 61 74 25  2c 43 6f 6e 74 25 29 0d  |at%,Sat%,Cont%).|
000004e0  02 bc 0c fd 20 56 25 3e  32 35 35 0d 02 c6 05 e1  |.... V%>255.....|
000004f0  0d 02 d0 04 0d 02 da 0c  dd 20 f2 5f 43 6f 6e 74  |......... ._Cont|
00000500  0d 02 e4 26 f1 22 53 65  6e 64 20 6e 75 6d 62 65  |...&."Send numbe|
00000510  72 20 74 6f 20 43 6f 6e  74 72 6f 6c 20 4f 75 74  |r to Control Out|
00000520  70 75 74 73 20 22 0d 02  ee 1e f1 22 56 61 6c 75  |puts "....."Valu|
00000530  65 20 6f 66 20 6f 76 65  72 20 31 35 20 74 6f 20  |e of over 15 to |
00000540  65 6e 64 22 0d 02 f8 0c  f2 5f 4f 50 6d 6f 64 65  |end"....._OPmode|
00000550  0d 03 02 05 f5 0d 03 0c  28 e8 22 56 61 6c 75 65  |........(."Value|
00000560  20 74 6f 20 73 65 6e 64  20 74 6f 20 44 61 74 61  | to send to Data|
00000570  20 4f 75 74 70 75 74 73  20 22 2c 56 25 0d 03 16  | Outputs ",V%...|
00000580  0d e7 20 56 25 3c 31 36  20 8c 0d 03 20 12 43 6f  |.. V%<16 ... .Co|
00000590  6e 74 25 3d 56 25 20 80  20 26 46 29 0d 03 2a 12  |nt%=V% . &F)..*.|
000005a0  56 76 25 3d 43 6f 6e 74  25 20 82 20 26 46 0d 03  |Vv%=Cont% . &F..|
000005b0  34 1d c8 99 22 50 61 72  61 6c 6c 65 6c 5f 4f 70  |4..."Parallel_Op|
000005c0  22 2c 32 2c 56 76 25 2c  26 33 30 0d 03 3e 05 cd  |",2,Vv%,&30..>..|
000005d0  0d 03 48 1b f2 5f 44 49  53 50 28 44 61 74 25 2c  |..H.._DISP(Dat%,|
000005e0  53 61 74 25 2c 43 6f 6e  74 25 29 0d 03 52 0b fd  |Sat%,Cont%)..R..|
000005f0  20 56 25 3e 31 35 0d 03  5c 05 e1 0d 03 66 04 0d  | V%>15..\....f..|
00000600  03 70 0b dd 20 f2 5f 52  69 6e 0d 03 7a 0c f2 5f  |.p.. ._Rin..z.._|
00000610  49 50 6d 6f 64 65 0d 03  84 1e f1 8a 30 2c 31 30  |IPmode......0,10|
00000620  29 22 53 70 61 63 65 20  62 61 72 20 74 6f 20 73  |)"Space bar to s|
00000630  74 6f 70 22 0d 03 8e 05  f5 0d 03 98 23 c8 99 22  |top"........#.."|
00000640  50 61 72 61 6c 6c 65 6c  5f 4f 70 22 2c 30 20 b8  |Parallel_Op",0 .|
00000650  20 2c 44 61 74 25 2c 53  74 61 74 25 0d 03 a2 1b  | ,Dat%,Stat%....|
00000660  f2 5f 44 49 53 50 28 44  61 74 25 2c 53 61 74 25  |._DISP(Dat%,Sat%|
00000670  2c 43 6f 6e 74 25 29 0d  03 ac 0d 42 25 3d a6 28  |,Cont%)....B%=.(|
00000680  2d 39 39 29 0d 03 b6 0b  fd 20 42 25 3c 3e 30 0d  |-99)..... B%<>0.|
00000690  03 c0 05 e1 0d 03 ca 04  0d 03 d4 0e dd 20 f2 5f  |............. ._|
000006a0  4f 50 6d 6f 64 65 0d 03  de 1b c8 99 22 50 61 72  |OPmode......"Par|
000006b0  61 6c 6c 65 6c 5f 4f 70  22 2c 32 2c 30 2c 26 31  |allel_Op",2,0,&1|
000006c0  46 0d 03 e8 0b 49 70 75  74 25 3d a3 0d 03 f2 05  |F....Iput%=.....|
000006d0  e1 0d 03 fc 04 0d 04 06  0e dd 20 f2 5f 49 50 6d  |.......... ._IPm|
000006e0  6f 64 65 0d 04 10 1d c8  99 22 50 61 72 61 6c 6c  |ode......"Parall|
000006f0  65 6c 5f 4f 70 22 2c 32  2c 26 32 30 2c 26 31 46  |el_Op",2,&20,&1F|
00000700  0d 04 1a 0b 49 70 75 74  25 3d b9 0d 04 24 05 e1  |....Iput%=...$..|
00000710  0d 04 2e 04 0d 04 38 16  dd 20 f2 5f 44 49 53 50  |......8.. ._DISP|
00000720  28 44 25 2c 53 25 2c 43  25 29 0d 04 42 08 ea 20  |(D%,S%,C%)..B.. |
00000730  41 25 0d 04 4c 0b f1 8a  30 2c 31 32 29 0d 04 56  |A%..L...0,12)..V|
00000740  2a f1 89 28 31 32 29 3b  7e 44 25 3b 89 28 31 39  |*..(12);~D%;.(19|
00000750  29 3b 7e 53 25 3e 3e 33  2c 89 28 31 30 29 3b 7e  |);~S%>>3,.(10);~|
00000760  43 25 20 80 20 26 46 0d  04 60 85 e7 20 49 70 75  |C% . &F..`.. Ipu|
00000770  74 25 20 8c 20 f1 22 20  20 20 20 20 20 20 20 44  |t% . ."        D|
00000780  61 74 61 20 20 49 6e 70  75 74 20 20 20 20 20 20  |ata  Input      |
00000790  20 20 20 20 20 20 53 74  61 74 75 73 20 20 20 20  |      Status    |
000007a0  20 20 20 20 20 20 20 43  6f 6e 74 72 6f 6c 22 20  |       Control" |
000007b0  8b 20 f1 22 20 20 20 20  20 20 20 20 44 61 74 61  |. ."        Data|
000007c0  20 20 4f 75 74 70 75 74  20 20 20 20 20 20 20 20  |  Output        |
000007d0  20 20 20 53 74 61 74 75  73 20 20 20 20 20 20 20  |   Status       |
000007e0  20 20 20 20 43 6f 6e 74  72 6f 6c 22 0d 04 6a 3f  |    Control"..j?|
000007f0  f1 22 20 37 20 20 36 20  20 35 20 20 34 20 20 33  |." 7  6  5  4  3|
00000800  20 20 32 20 20 31 20 20  30 20 20 2d 20 20 42 20  |  2  1  0  -  B |
00000810  20 41 20 20 50 20 20 53  20 20 45 20 20 2d 20 20  | A  P  S  E  -  |
00000820  53 20 20 49 20 20 41 20  20 53 22 0d 04 74 05 f1  |S  I  A  S"..t..|
00000830  0d 04 7e 0e e3 20 41 25  3d 30 20 b8 20 37 0d 04  |..~.. A%=0 . 7..|
00000840  88 26 e7 20 28 44 25 20  80 20 26 38 30 29 3d 30  |.&. (D% . &80)=0|
00000850  20 8c 20 f1 22 20 30 20  22 3b 20 8b 20 f1 22 20  | . ." 0 "; . ." |
00000860  31 20 22 3b 0d 04 92 0c  44 25 3d 44 25 3c 3c 31  |1 ";....D%=D%<<1|
00000870  0d 04 9c 05 ed 0d 04 a6  0a f1 89 28 33 29 3b 0d  |...........(3);.|
00000880  04 b0 0e e3 20 41 25 3d  30 20 b8 20 34 0d 04 ba  |.... A%=0 . 4...|
00000890  26 e7 20 28 53 25 20 80  20 26 38 30 29 3d 30 20  |&. (S% . &80)=0 |
000008a0  8c 20 f1 22 20 30 20 22  3b 20 8b 20 f1 22 20 31  |. ." 0 "; . ." 1|
000008b0  20 22 3b 0d 04 c4 0c 53  25 3d 53 25 3c 3c 31 0d  | ";....S%=S%<<1.|
000008c0  04 ce 05 ed 0d 04 d8 0a  f1 89 28 33 29 3b 0d 04  |..........(3);..|
000008d0  e2 0e e3 20 41 25 3d 30  20 b8 20 33 0d 04 ec 25  |... A%=0 . 3...%|
000008e0  e7 20 28 43 25 20 80 20  26 38 29 3d 30 20 8c 20  |. (C% . &8)=0 . |
000008f0  f1 22 20 30 20 22 3b 20  8b 20 f1 22 20 31 20 22  |." 0 "; . ." 1 "|
00000900  3b 0d 04 f6 0c 43 25 3d  43 25 3c 3c 31 0d 05 00  |;....C%=C%<<1...|
00000910  05 ed 0d 05 0a 05 f1 0d  05 14 05 e1 0d ff        |..............|
0000091e