Home » Archimedes archive » Acorn User » AU 1993-08.adf » !Bio_Bio » !Bio/Library/HexDump

!Bio/Library/HexDump

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 1993-08.adf » !Bio_Bio
Filename: !Bio/Library/HexDump
Read OK:
File size: 0A27 bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
   10REM >HexDump
   20REM Hex dump
   30END
   40:
   50DEF FNhexdump_name = "Hex dump"
   60DEF FNhexdump_args = "-in * -out Text -send"
   70:
   80DEF FNhexdump_init
   90hex_form%=0
  100hex_width%=16
  110hex_ascii%=TRUE
  120hex_length%=16
  130PROCwrite_in_icon(wind_hand%,2,STR$hex_width%)
  140PROCwrite_in_icon(wind_hand%,7,STR$hex_length%)
  150PROCset_button(wind_hand%,3,ABS(hex_form%=0))
  160PROCset_button(wind_hand%,4,ABS(hex_form%=1))
  170PROCset_button(wind_hand%,5,ABShex_ascii%)
  180=0
  190:
  200DEF FNhexdump_mouse(mx%,my%,mb%,mh%,mi%)
  210IF (mi%=3 OR mi%=4) THEN
  220 IF (mb% AND 1) AND FNbutton_state(mh%,mi%)=0 PROCset_button(mh%,mi%,1)
  230 IF mi%-3<>hex_form% THEN
  240  hex_form%=mi%-3
  250  hex_width%=VALFNicon_text(mh%,2)
  260  CASE hex_form% OF
  270   WHEN 0: hex_width%=hex_width%*4
  280   WHEN 1: hex_width%=hex_width% DIV 4
  290  ENDCASE
  300  PROCwrite_in_icon(mh%,2,STR$hex_width%)
  310 ENDIF
  320ENDIF
  330=0
  340:
  350DEF FNhexdump_key(wh%,ic%,cx%,cy%,ch%,ci%,key%)
  360=0
  370:
  380DEF FNhexdump(in$,out$)
  390LOCAL in%,out%,line$,i%,b%,str$
  400in%=OPENIN(in$)
  410out%=OPENOUT(out$)
  420togo%=0
  430hex_width%=VALFNicon_text(wind_hand%,2)
  440hex_length%=VALFNicon_text(wind_hand%,7)
  450hex_ascii%=FNbutton_state(wind_hand%,5)
  460CASE hex_form% OF
  470 WHEN 0:wide%=hex_width%
  480 WHEN 1:wide%=hex_width%*4
  490ENDCASE
  500WHILE NOT EOF#in%
  510 PROChourglass(PTR#in%,EXT#in%)
  520 IF togo%=0 THEN
  530  IF wide% MOD 16=0 THEN
  540   line$="Address  :"
  550   FOR i%=0 TO (wide%-1) DIV 4
  560    IF hex_form%=1 line$+=" "
  570    FOR j%=0 TO 3
  580     IF hex_form%=0 line$+=" "+RIGHT$("00"+STR$~(i%*4+j%),2)
  590     IF hex_form%=1 line$+=RIGHT$("00"+STR$~(i%*4+3-j%),2)
  600    NEXT
  610   NEXT
  620   IF hex_ascii% line$+=" : "+STRING$((wide%-10)/2," ")+"ASCII data"
  630   PROCbput(out%,"")
  640   PROCbput(out%,line$)
  650  ENDIF
  660  PROCbput(out%,"")
  670  togo%=hex_length%
  680 ENDIF
  690 addr$=RIGHT$("00000000"+STR$~PTR#in%,8)+" :"
  700 line$=""
  710 word$=""
  720 ascii$=" : "
  730 i%=0
  740 WHILE NOT EOF#in% AND i%<wide%
  750  b%=BGET#in%
  760  word$=RIGHT$("00"+STR$~b%,2)+word$
  770  IF LENword$=hex_form%*6+2 line$+=" "+word$:word$=""
  780  IF b%<32 OR b%=127 b%=ASC"."
  790  IF hex_ascii% ascii$+=CHR$b%
  800  i%+=1
  810 ENDWHILE
  820 IF word$<>"" line$+=" "+RIGHT$("xxxxxxxx"+word$,8)
  830 line$=addr$+line$+STRING$(hex_width%*(hex_form%*6+3)-LENline$," ")
  840 IF hex_ascii% line$+=ascii$
  850 PROCbput(out%,line$)
  860 togo%-=1
  870ENDWHILE
  880CLOSE #in%
  890CLOSE #out%
  900=0
  910:
  920DEF FNhexdump_help(window%,icon%)
  930LOCAL help$
  940IF window%=-1 THEN
  950 help$="Drop any file on this for a hex dump."
  960ELSE
  970 CASE icon% OF
  980  WHEN 2:help$="Enter hex dump width here"
  990  WHEN 3:help$="Click SELECT to set output format to 'bytes'"
 1000  WHEN 4:help$="Click SELECT to set output format to 'words'"
 1010  WHEN 5:help$="Click SELECT to "+FNhelp_on_icon(window%,icon%,"in","ex")+"clude ASCII text"
 1020  WHEN 7:help$="Enter length of dump block here"
 1030 ENDCASE
 1040ENDIF
 1050=help$

� >HexDump
� Hex dump
�
(:
2 � �hexdump_name = "Hex dump"
<-� �hexdump_args = "-in * -out Text -send"
F:
P� �hexdump_init
Zhex_form%=0
dhex_width%=16
nhex_ascii%=�
xhex_length%=16
�,�write_in_icon(wind_hand%,2,�hex_width%)
�-�write_in_icon(wind_hand%,7,�hex_length%)
�,�set_button(wind_hand%,3,�(hex_form%=0))
�,�set_button(wind_hand%,4,�(hex_form%=1))
�)�set_button(wind_hand%,5,�hex_ascii%)
�=0
�:
�)� �hexdump_mouse(mx%,my%,mb%,mh%,mi%)
�� (mi%=3 � mi%=4) �
�B � (mb% � 1) � �button_state(mh%,mi%)=0 �set_button(mh%,mi%,1)
� � mi%-3<>hex_form% �
�  hex_form%=mi%-3
�#  hex_width%=��icon_text(mh%,2)
  Ȏ hex_form% �
#   � 0: hex_width%=hex_width%*4
%   � 1: hex_width%=hex_width% � 4
"  �
,'  �write_in_icon(mh%,2,�hex_width%)
6 �
@�
J=0
T:
^0� �hexdump_key(wh%,ic%,cx%,cy%,ch%,ci%,key%)
h=0
r:
|� �hexdump(in$,out$)
�� in%,out%,line$,i%,b%,str$
�in%=�(in$)
�out%=�(out$)
�togo%=0
�(hex_width%=��icon_text(wind_hand%,2)
�)hex_length%=��icon_text(wind_hand%,7)
�*hex_ascii%=�button_state(wind_hand%,5)
�Ȏ hex_form% �
� � 0:wide%=hex_width%
� � 1:wide%=hex_width%*4
��
�ȕ � �#in%
� �hourglass(�#in%,�#in%)
 � togo%=0 �
  � wide% � 16=0 �
   line$="Address  :"
&   � i%=0 � (wide%-1) � 4
0     � hex_form%=1 line$+=" "
:    � j%=0 � 3
D6     � hex_form%=0 line$+=" "+�"00"+�~(i%*4+j%),2)
N4     � hex_form%=1 line$+=�"00"+�~(i%*4+3-j%),2)
X	    �
b   �
l@   � hex_ascii% line$+=" : "+�(wide%-10)/2," ")+"ASCII data"
v   �bput(out%,"")
�   �bput(out%,line$)
�  �
�  �bput(out%,"")
�  togo%=hex_length%
� �
�& addr$=�"00000000"+�~�#in%,8)+" :"
�
 line$=""
�
 word$=""
� ascii$=" : "
�	 i%=0
� ȕ � �#in% � i%<wide%
�  b%=�#in%
�  word$=�"00"+�~b%,2)+word$
6  � �word$=hex_form%*6+2 line$+=" "+word$:word$=""
  � b%<32 � b%=127 b%=�"."
  � hex_ascii% ascii$+=�b%
   i%+=1
* �
40 � word$<>"" line$+=" "+�"xxxxxxxx"+word$,8)
>> line$=addr$+line$+�hex_width%*(hex_form%*6+3)-�line$," ")
H � hex_ascii% line$+=ascii$
R �bput(out%,line$)
\
 togo%-=1
f�
p
� #in%
z� #out%
�=0
�:
�"� �hexdump_help(window%,icon%)
�� help$
�� window%=-1 �
�2 help$="Drop any file on this for a hex dump."
��
� Ȏ icon% �
�+  � 2:help$="Enter hex dump width here"
�>  � 3:help$="Click SELECT to set output format to 'bytes'"
�>  � 4:help$="Click SELECT to set output format to 'words'"
�\  � 5:help$="Click SELECT to "+�help_on_icon(window%,icon%,"in","ex")+"clude ASCII text"
�1  � 7:help$="Enter length of dump block here"
 �
�

=help$
�
00000000  0d 00 0a 0e f4 20 3e 48  65 78 44 75 6d 70 0d 00  |..... >HexDump..|
00000010  14 0e f4 20 48 65 78 20  64 75 6d 70 0d 00 1e 05  |... Hex dump....|
00000020  e0 0d 00 28 05 3a 0d 00  32 20 dd 20 a4 68 65 78  |...(.:..2 . .hex|
00000030  64 75 6d 70 5f 6e 61 6d  65 20 3d 20 22 48 65 78  |dump_name = "Hex|
00000040  20 64 75 6d 70 22 0d 00  3c 2d dd 20 a4 68 65 78  | dump"..<-. .hex|
00000050  64 75 6d 70 5f 61 72 67  73 20 3d 20 22 2d 69 6e  |dump_args = "-in|
00000060  20 2a 20 2d 6f 75 74 20  54 65 78 74 20 2d 73 65  | * -out Text -se|
00000070  6e 64 22 0d 00 46 05 3a  0d 00 50 13 dd 20 a4 68  |nd"..F.:..P.. .h|
00000080  65 78 64 75 6d 70 5f 69  6e 69 74 0d 00 5a 0f 68  |exdump_init..Z.h|
00000090  65 78 5f 66 6f 72 6d 25  3d 30 0d 00 64 11 68 65  |ex_form%=0..d.he|
000000a0  78 5f 77 69 64 74 68 25  3d 31 36 0d 00 6e 10 68  |x_width%=16..n.h|
000000b0  65 78 5f 61 73 63 69 69  25 3d b9 0d 00 78 12 68  |ex_ascii%=...x.h|
000000c0  65 78 5f 6c 65 6e 67 74  68 25 3d 31 36 0d 00 82  |ex_length%=16...|
000000d0  2c f2 77 72 69 74 65 5f  69 6e 5f 69 63 6f 6e 28  |,.write_in_icon(|
000000e0  77 69 6e 64 5f 68 61 6e  64 25 2c 32 2c c3 68 65  |wind_hand%,2,.he|
000000f0  78 5f 77 69 64 74 68 25  29 0d 00 8c 2d f2 77 72  |x_width%)...-.wr|
00000100  69 74 65 5f 69 6e 5f 69  63 6f 6e 28 77 69 6e 64  |ite_in_icon(wind|
00000110  5f 68 61 6e 64 25 2c 37  2c c3 68 65 78 5f 6c 65  |_hand%,7,.hex_le|
00000120  6e 67 74 68 25 29 0d 00  96 2c f2 73 65 74 5f 62  |ngth%)...,.set_b|
00000130  75 74 74 6f 6e 28 77 69  6e 64 5f 68 61 6e 64 25  |utton(wind_hand%|
00000140  2c 33 2c 94 28 68 65 78  5f 66 6f 72 6d 25 3d 30  |,3,.(hex_form%=0|
00000150  29 29 0d 00 a0 2c f2 73  65 74 5f 62 75 74 74 6f  |))...,.set_butto|
00000160  6e 28 77 69 6e 64 5f 68  61 6e 64 25 2c 34 2c 94  |n(wind_hand%,4,.|
00000170  28 68 65 78 5f 66 6f 72  6d 25 3d 31 29 29 0d 00  |(hex_form%=1))..|
00000180  aa 29 f2 73 65 74 5f 62  75 74 74 6f 6e 28 77 69  |.).set_button(wi|
00000190  6e 64 5f 68 61 6e 64 25  2c 35 2c 94 68 65 78 5f  |nd_hand%,5,.hex_|
000001a0  61 73 63 69 69 25 29 0d  00 b4 06 3d 30 0d 00 be  |ascii%)....=0...|
000001b0  05 3a 0d 00 c8 29 dd 20  a4 68 65 78 64 75 6d 70  |.:...). .hexdump|
000001c0  5f 6d 6f 75 73 65 28 6d  78 25 2c 6d 79 25 2c 6d  |_mouse(mx%,my%,m|
000001d0  62 25 2c 6d 68 25 2c 6d  69 25 29 0d 00 d2 17 e7  |b%,mh%,mi%).....|
000001e0  20 28 6d 69 25 3d 33 20  84 20 6d 69 25 3d 34 29  | (mi%=3 . mi%=4)|
000001f0  20 8c 0d 00 dc 42 20 e7  20 28 6d 62 25 20 80 20  | ....B . (mb% . |
00000200  31 29 20 80 20 a4 62 75  74 74 6f 6e 5f 73 74 61  |1) . .button_sta|
00000210  74 65 28 6d 68 25 2c 6d  69 25 29 3d 30 20 f2 73  |te(mh%,mi%)=0 .s|
00000220  65 74 5f 62 75 74 74 6f  6e 28 6d 68 25 2c 6d 69  |et_button(mh%,mi|
00000230  25 2c 31 29 0d 00 e6 19  20 e7 20 6d 69 25 2d 33  |%,1).... . mi%-3|
00000240  3c 3e 68 65 78 5f 66 6f  72 6d 25 20 8c 0d 00 f0  |<>hex_form% ....|
00000250  15 20 20 68 65 78 5f 66  6f 72 6d 25 3d 6d 69 25  |.  hex_form%=mi%|
00000260  2d 33 0d 00 fa 23 20 20  68 65 78 5f 77 69 64 74  |-3...#  hex_widt|
00000270  68 25 3d bb a4 69 63 6f  6e 5f 74 65 78 74 28 6d  |h%=..icon_text(m|
00000280  68 25 2c 32 29 0d 01 04  14 20 20 c8 8e 20 68 65  |h%,2)....  .. he|
00000290  78 5f 66 6f 72 6d 25 20  ca 0d 01 0e 23 20 20 20  |x_form% ....#   |
000002a0  c9 20 30 3a 20 68 65 78  5f 77 69 64 74 68 25 3d  |. 0: hex_width%=|
000002b0  68 65 78 5f 77 69 64 74  68 25 2a 34 0d 01 18 25  |hex_width%*4...%|
000002c0  20 20 20 c9 20 31 3a 20  68 65 78 5f 77 69 64 74  |   . 1: hex_widt|
000002d0  68 25 3d 68 65 78 5f 77  69 64 74 68 25 20 81 20  |h%=hex_width% . |
000002e0  34 0d 01 22 07 20 20 cb  0d 01 2c 27 20 20 f2 77  |4..".  ...,'  .w|
000002f0  72 69 74 65 5f 69 6e 5f  69 63 6f 6e 28 6d 68 25  |rite_in_icon(mh%|
00000300  2c 32 2c c3 68 65 78 5f  77 69 64 74 68 25 29 0d  |,2,.hex_width%).|
00000310  01 36 06 20 cd 0d 01 40  05 cd 0d 01 4a 06 3d 30  |.6. ...@....J.=0|
00000320  0d 01 54 05 3a 0d 01 5e  30 dd 20 a4 68 65 78 64  |..T.:..^0. .hexd|
00000330  75 6d 70 5f 6b 65 79 28  77 68 25 2c 69 63 25 2c  |ump_key(wh%,ic%,|
00000340  63 78 25 2c 63 79 25 2c  63 68 25 2c 63 69 25 2c  |cx%,cy%,ch%,ci%,|
00000350  6b 65 79 25 29 0d 01 68  06 3d 30 0d 01 72 05 3a  |key%)..h.=0..r.:|
00000360  0d 01 7c 18 dd 20 a4 68  65 78 64 75 6d 70 28 69  |..|.. .hexdump(i|
00000370  6e 24 2c 6f 75 74 24 29  0d 01 86 1f ea 20 69 6e  |n$,out$)..... in|
00000380  25 2c 6f 75 74 25 2c 6c  69 6e 65 24 2c 69 25 2c  |%,out%,line$,i%,|
00000390  62 25 2c 73 74 72 24 0d  01 90 0e 69 6e 25 3d 8e  |b%,str$....in%=.|
000003a0  28 69 6e 24 29 0d 01 9a  10 6f 75 74 25 3d ae 28  |(in$)....out%=.(|
000003b0  6f 75 74 24 29 0d 01 a4  0b 74 6f 67 6f 25 3d 30  |out$)....togo%=0|
000003c0  0d 01 ae 28 68 65 78 5f  77 69 64 74 68 25 3d bb  |...(hex_width%=.|
000003d0  a4 69 63 6f 6e 5f 74 65  78 74 28 77 69 6e 64 5f  |.icon_text(wind_|
000003e0  68 61 6e 64 25 2c 32 29  0d 01 b8 29 68 65 78 5f  |hand%,2)...)hex_|
000003f0  6c 65 6e 67 74 68 25 3d  bb a4 69 63 6f 6e 5f 74  |length%=..icon_t|
00000400  65 78 74 28 77 69 6e 64  5f 68 61 6e 64 25 2c 37  |ext(wind_hand%,7|
00000410  29 0d 01 c2 2a 68 65 78  5f 61 73 63 69 69 25 3d  |)...*hex_ascii%=|
00000420  a4 62 75 74 74 6f 6e 5f  73 74 61 74 65 28 77 69  |.button_state(wi|
00000430  6e 64 5f 68 61 6e 64 25  2c 35 29 0d 01 cc 12 c8  |nd_hand%,5).....|
00000440  8e 20 68 65 78 5f 66 6f  72 6d 25 20 ca 0d 01 d6  |. hex_form% ....|
00000450  19 20 c9 20 30 3a 77 69  64 65 25 3d 68 65 78 5f  |. . 0:wide%=hex_|
00000460  77 69 64 74 68 25 0d 01  e0 1b 20 c9 20 31 3a 77  |width%.... . 1:w|
00000470  69 64 65 25 3d 68 65 78  5f 77 69 64 74 68 25 2a  |ide%=hex_width%*|
00000480  34 0d 01 ea 05 cb 0d 01  f4 0e c8 95 20 ac 20 c5  |4........... . .|
00000490  23 69 6e 25 0d 01 fe 1c  20 f2 68 6f 75 72 67 6c  |#in%.... .hourgl|
000004a0  61 73 73 28 8f 23 69 6e  25 2c a2 23 69 6e 25 29  |ass(.#in%,.#in%)|
000004b0  0d 02 08 10 20 e7 20 74  6f 67 6f 25 3d 30 20 8c  |.... . togo%=0 .|
000004c0  0d 02 12 16 20 20 e7 20  77 69 64 65 25 20 83 20  |....  . wide% . |
000004d0  31 36 3d 30 20 8c 0d 02  1c 19 20 20 20 6c 69 6e  |16=0 .....   lin|
000004e0  65 24 3d 22 41 64 64 72  65 73 73 20 20 3a 22 0d  |e$="Address  :".|
000004f0  02 26 1d 20 20 20 e3 20  69 25 3d 30 20 b8 20 28  |.&.   . i%=0 . (|
00000500  77 69 64 65 25 2d 31 29  20 81 20 34 0d 02 30 20  |wide%-1) . 4..0 |
00000510  20 20 20 20 e7 20 68 65  78 5f 66 6f 72 6d 25 3d  |    . hex_form%=|
00000520  31 20 6c 69 6e 65 24 2b  3d 22 20 22 0d 02 3a 12  |1 line$+=" "..:.|
00000530  20 20 20 20 e3 20 6a 25  3d 30 20 b8 20 33 0d 02  |    . j%=0 . 3..|
00000540  44 36 20 20 20 20 20 e7  20 68 65 78 5f 66 6f 72  |D6     . hex_for|
00000550  6d 25 3d 30 20 6c 69 6e  65 24 2b 3d 22 20 22 2b  |m%=0 line$+=" "+|
00000560  c2 22 30 30 22 2b c3 7e  28 69 25 2a 34 2b 6a 25  |."00"+.~(i%*4+j%|
00000570  29 2c 32 29 0d 02 4e 34  20 20 20 20 20 e7 20 68  |),2)..N4     . h|
00000580  65 78 5f 66 6f 72 6d 25  3d 31 20 6c 69 6e 65 24  |ex_form%=1 line$|
00000590  2b 3d c2 22 30 30 22 2b  c3 7e 28 69 25 2a 34 2b  |+=."00"+.~(i%*4+|
000005a0  33 2d 6a 25 29 2c 32 29  0d 02 58 09 20 20 20 20  |3-j%),2)..X.    |
000005b0  ed 0d 02 62 08 20 20 20  ed 0d 02 6c 40 20 20 20  |...b.   ...l@   |
000005c0  e7 20 68 65 78 5f 61 73  63 69 69 25 20 6c 69 6e  |. hex_ascii% lin|
000005d0  65 24 2b 3d 22 20 3a 20  22 2b c4 28 77 69 64 65  |e$+=" : "+.(wide|
000005e0  25 2d 31 30 29 2f 32 2c  22 20 22 29 2b 22 41 53  |%-10)/2," ")+"AS|
000005f0  43 49 49 20 64 61 74 61  22 0d 02 76 15 20 20 20  |CII data"..v.   |
00000600  f2 62 70 75 74 28 6f 75  74 25 2c 22 22 29 0d 02  |.bput(out%,"")..|
00000610  80 18 20 20 20 f2 62 70  75 74 28 6f 75 74 25 2c  |..   .bput(out%,|
00000620  6c 69 6e 65 24 29 0d 02  8a 07 20 20 cd 0d 02 94  |line$)....  ....|
00000630  14 20 20 f2 62 70 75 74  28 6f 75 74 25 2c 22 22  |.  .bput(out%,""|
00000640  29 0d 02 9e 17 20 20 74  6f 67 6f 25 3d 68 65 78  |)....  togo%=hex|
00000650  5f 6c 65 6e 67 74 68 25  0d 02 a8 06 20 cd 0d 02  |_length%.... ...|
00000660  b2 26 20 61 64 64 72 24  3d c2 22 30 30 30 30 30  |.& addr$=."00000|
00000670  30 30 30 22 2b c3 7e 8f  23 69 6e 25 2c 38 29 2b  |000"+.~.#in%,8)+|
00000680  22 20 3a 22 0d 02 bc 0d  20 6c 69 6e 65 24 3d 22  |" :".... line$="|
00000690  22 0d 02 c6 0d 20 77 6f  72 64 24 3d 22 22 0d 02  |".... word$=""..|
000006a0  d0 11 20 61 73 63 69 69  24 3d 22 20 3a 20 22 0d  |.. ascii$=" : ".|
000006b0  02 da 09 20 69 25 3d 30  0d 02 e4 1a 20 c8 95 20  |... i%=0.... .. |
000006c0  ac 20 c5 23 69 6e 25 20  80 20 69 25 3c 77 69 64  |. .#in% . i%<wid|
000006d0  65 25 0d 02 ee 0e 20 20  62 25 3d 9a 23 69 6e 25  |e%....  b%=.#in%|
000006e0  0d 02 f8 1f 20 20 77 6f  72 64 24 3d c2 22 30 30  |....  word$=."00|
000006f0  22 2b c3 7e 62 25 2c 32  29 2b 77 6f 72 64 24 0d  |"+.~b%,2)+word$.|
00000700  03 02 36 20 20 e7 20 a9  77 6f 72 64 24 3d 68 65  |..6  . .word$=he|
00000710  78 5f 66 6f 72 6d 25 2a  36 2b 32 20 6c 69 6e 65  |x_form%*6+2 line|
00000720  24 2b 3d 22 20 22 2b 77  6f 72 64 24 3a 77 6f 72  |$+=" "+word$:wor|
00000730  64 24 3d 22 22 0d 03 0c  1e 20 20 e7 20 62 25 3c  |d$=""....  . b%<|
00000740  33 32 20 84 20 62 25 3d  31 32 37 20 62 25 3d 97  |32 . b%=127 b%=.|
00000750  22 2e 22 0d 03 16 1e 20  20 e7 20 68 65 78 5f 61  |"."....  . hex_a|
00000760  73 63 69 69 25 20 61 73  63 69 69 24 2b 3d bd 62  |scii% ascii$+=.b|
00000770  25 0d 03 20 0b 20 20 69  25 2b 3d 31 0d 03 2a 06  |%.. .  i%+=1..*.|
00000780  20 ce 0d 03 34 30 20 e7  20 77 6f 72 64 24 3c 3e  | ...40 . word$<>|
00000790  22 22 20 6c 69 6e 65 24  2b 3d 22 20 22 2b c2 22  |"" line$+=" "+."|
000007a0  78 78 78 78 78 78 78 78  22 2b 77 6f 72 64 24 2c  |xxxxxxxx"+word$,|
000007b0  38 29 0d 03 3e 3e 20 6c  69 6e 65 24 3d 61 64 64  |8)..>> line$=add|
000007c0  72 24 2b 6c 69 6e 65 24  2b c4 68 65 78 5f 77 69  |r$+line$+.hex_wi|
000007d0  64 74 68 25 2a 28 68 65  78 5f 66 6f 72 6d 25 2a  |dth%*(hex_form%*|
000007e0  36 2b 33 29 2d a9 6c 69  6e 65 24 2c 22 20 22 29  |6+3)-.line$," ")|
000007f0  0d 03 48 1f 20 e7 20 68  65 78 5f 61 73 63 69 69  |..H. . hex_ascii|
00000800  25 20 6c 69 6e 65 24 2b  3d 61 73 63 69 69 24 0d  |% line$+=ascii$.|
00000810  03 52 16 20 f2 62 70 75  74 28 6f 75 74 25 2c 6c  |.R. .bput(out%,l|
00000820  69 6e 65 24 29 0d 03 5c  0d 20 74 6f 67 6f 25 2d  |ine$)..\. togo%-|
00000830  3d 31 0d 03 66 05 ce 0d  03 70 0a d9 20 23 69 6e  |=1..f....p.. #in|
00000840  25 0d 03 7a 0b d9 20 23  6f 75 74 25 0d 03 84 06  |%..z.. #out%....|
00000850  3d 30 0d 03 8e 05 3a 0d  03 98 22 dd 20 a4 68 65  |=0....:...". .he|
00000860  78 64 75 6d 70 5f 68 65  6c 70 28 77 69 6e 64 6f  |xdump_help(windo|
00000870  77 25 2c 69 63 6f 6e 25  29 0d 03 a2 0b ea 20 68  |w%,icon%)..... h|
00000880  65 6c 70 24 0d 03 ac 12  e7 20 77 69 6e 64 6f 77  |elp$..... window|
00000890  25 3d 2d 31 20 8c 0d 03  b6 32 20 68 65 6c 70 24  |%=-1 ....2 help$|
000008a0  3d 22 44 72 6f 70 20 61  6e 79 20 66 69 6c 65 20  |="Drop any file |
000008b0  6f 6e 20 74 68 69 73 20  66 6f 72 20 61 20 68 65  |on this for a he|
000008c0  78 20 64 75 6d 70 2e 22  0d 03 c0 05 cc 0d 03 ca  |x dump."........|
000008d0  0f 20 c8 8e 20 69 63 6f  6e 25 20 ca 0d 03 d4 2b  |. .. icon% ....+|
000008e0  20 20 c9 20 32 3a 68 65  6c 70 24 3d 22 45 6e 74  |  . 2:help$="Ent|
000008f0  65 72 20 68 65 78 20 64  75 6d 70 20 77 69 64 74  |er hex dump widt|
00000900  68 20 68 65 72 65 22 0d  03 de 3e 20 20 c9 20 33  |h here"...>  . 3|
00000910  3a 68 65 6c 70 24 3d 22  43 6c 69 63 6b 20 53 45  |:help$="Click SE|
00000920  4c 45 43 54 20 74 6f 20  73 65 74 20 6f 75 74 70  |LECT to set outp|
00000930  75 74 20 66 6f 72 6d 61  74 20 74 6f 20 27 62 79  |ut format to 'by|
00000940  74 65 73 27 22 0d 03 e8  3e 20 20 c9 20 34 3a 68  |tes'"...>  . 4:h|
00000950  65 6c 70 24 3d 22 43 6c  69 63 6b 20 53 45 4c 45  |elp$="Click SELE|
00000960  43 54 20 74 6f 20 73 65  74 20 6f 75 74 70 75 74  |CT to set output|
00000970  20 66 6f 72 6d 61 74 20  74 6f 20 27 77 6f 72 64  | format to 'word|
00000980  73 27 22 0d 03 f2 5c 20  20 c9 20 35 3a 68 65 6c  |s'"...\  . 5:hel|
00000990  70 24 3d 22 43 6c 69 63  6b 20 53 45 4c 45 43 54  |p$="Click SELECT|
000009a0  20 74 6f 20 22 2b a4 68  65 6c 70 5f 6f 6e 5f 69  | to "+.help_on_i|
000009b0  63 6f 6e 28 77 69 6e 64  6f 77 25 2c 69 63 6f 6e  |con(window%,icon|
000009c0  25 2c 22 69 6e 22 2c 22  65 78 22 29 2b 22 63 6c  |%,"in","ex")+"cl|
000009d0  75 64 65 20 41 53 43 49  49 20 74 65 78 74 22 0d  |ude ASCII text".|
000009e0  03 fc 31 20 20 c9 20 37  3a 68 65 6c 70 24 3d 22  |..1  . 7:help$="|
000009f0  45 6e 74 65 72 20 6c 65  6e 67 74 68 20 6f 66 20  |Enter length of |
00000a00  64 75 6d 70 20 62 6c 6f  63 6b 20 68 65 72 65 22  |dump block here"|
00000a10  0d 04 06 06 20 cb 0d 04  10 05 cd 0d 04 1a 0a 3d  |.... ..........=|
00000a20  68 65 6c 70 24 0d ff                              |help$..|
00000a27