Mercurial > hg > Members > kono > nitros9-code
annotate level1/cmds/dump.asm @ 990:3c51c59f97c4
Small cosmetic changes
author | boisy |
---|---|
date | Fri, 21 Feb 2003 13:18:13 +0000 |
parents | 707940712718 |
children | b8608857a4a2 |
rev | line source |
---|---|
0 | 1 ******************************************************************** |
2 * Dump - Show file contents in hex | |
3 * | |
4 * $Id$ | |
5 * | |
945 | 6 * Dump follows the function of the original Microware version but now |
7 * supports large files over 64K, and is free from the problems of garbage | |
8 * in wide listings. | |
9 * | |
10 * In addition it now allows dumping of memory modules and command modules | |
11 * in the execution directory. | |
12 * | |
0 | 13 * Ed. Comments Who YY/MM/DD |
14 * ------------------------------------------------------------------ | |
200
e9ce43cc215e
Made major changes to headers for consistency and identification
boisy
parents:
21
diff
changeset
|
15 * 5 From Tandy OS-9 Level One VR 02.00.00 |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
16 * 6 Incorporated R. Telkman's additions from 1987, BGP 02/12/23 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
17 * added -d option, added defs to conditionally |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
18 * assemble without help or screen size check |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
19 * |
901 | 20 * Removed -d option BGP 03/01/17 |
945 | 21 * Narrow screen now shows properly, only dumps BGP 03/01/21 |
22 * 16 bits worth of address data to make room. | |
0 | 23 |
24 nam Dump | |
25 ttl Show file contents in hex | |
26 | |
785 | 27 ifp1 |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
28 use defsfile |
785 | 29 endc |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
30 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
31 * Tweakable options |
740 | 32 DOSCSIZ set 1 1 = include SS.ScSiz code, 0 = leave out |
886
6393d53ce3c7
Fixed help to be consistent with other utils, set DOHELP to 0
boisy
parents:
785
diff
changeset
|
33 DOHELP set 0 1 = include help message, 0 = leave out |
921
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
901
diff
changeset
|
34 BufSz set 80 |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
35 |
921
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
901
diff
changeset
|
36 tylg set Prgrm+Objct |
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
901
diff
changeset
|
37 atrv set ReEnt+rev |
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
901
diff
changeset
|
38 rev set 1 |
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
901
diff
changeset
|
39 edition set 6 |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
40 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
41 org 0 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
42 nonopts rmb 1 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
43 D.Prm rmb 2 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
44 D.Hdr rmb 1 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
45 D.Mem rmb 1 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
46 IFNE DOSCSIZ |
945 | 47 narrow rmb 1 |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
48 ENDC |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
49 Mode rmb 1 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
50 D.Opn rmb 1 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
51 D.Beg rmb 2 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
52 D.End rmb 2 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
53 D.Adr rmb 4 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
54 D.Len rmb 2 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
55 D.Ptr rmb 2 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
56 D.Txt rmb 2 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
57 Datbuf rmb 16 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
58 Txtbuf rmb BUFSZ |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
59 rmb 128 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
60 datsz equ . |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
61 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
62 |
921
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
901
diff
changeset
|
63 mod length,name,tylg,atrv,start,datsz |
0 | 64 |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
65 name fcs /Dump/ |
921
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
901
diff
changeset
|
66 fcb edition |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
67 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
68 title fcc /Address 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 2 4 6 8 A C E/ |
945 | 69 titlelen equ *-title |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
70 caret fcb C$CR |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
71 flund fcc /-------- ---- ---- ---- ---- ---- ---- ---- ---- ----------------/ |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
72 fcb C$CR |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
73 IFNE DOSCSIZ |
945 | 74 short fcc / 0 1 2 3 4 5 6 7 0 2 4 6/ |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
75 fcb C$LF |
945 | 76 fcc /Addr 8 9 A B C D E F 8 A C E/ |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
77 fcb C$CR |
945 | 78 shund fcc /==== +-+-+-+-+-+-+-+- +-+-+-+-/ |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
79 fcb C$CR |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
80 ENDC |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
81 |
921
617c1b90e623
Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents:
901
diff
changeset
|
82 start stx <D.Prm |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
83 clra |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
84 sta <D.Hdr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
85 sta <D.Mem |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
86 sta <nonopts assume no non-opts |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
87 inca |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
88 sta <Mode READ. |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
89 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
90 IFNE DOSCSIZ |
945 | 91 clr <narrow assume wide |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
92 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
93 * Check screen size |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
94 ldb #SS.ScSiz |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
95 os9 I$GetStt |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
96 bcs Pass1 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
97 |
945 | 98 cmpx #titlelen+1 |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
99 bge PrePass |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
100 |
945 | 101 sta <narrow |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
102 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
103 PrePass ldx <D.Prm |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
104 ENDC |
0 | 105 |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
106 * Pass1 - process any options |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
107 * Entry: X = ptr to cmd line |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
108 Pass1 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
109 * Skip over spaces |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
110 lda ,x+ |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
111 cmpa #C$SPAC |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
112 beq Pass1 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
113 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
114 * Check for EOL |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
115 cmpa #C$CR |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
116 beq Pass2 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
117 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
118 * Check for option |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
119 cmpa #'- |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
120 bne Pass1 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
121 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
122 * Here, X points to an option char |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
123 OptPass lda ,x+ |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
124 cmpa #C$SPAC |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
125 beq Pass1 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
126 cmpa #C$CR |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
127 beq Pass2 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
128 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
129 anda #$DF |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
130 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
131 IsItH cmpa #'H |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
132 bne IsItM |
0 | 133 |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
134 * Process H here |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
135 sta <D.Hdr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
136 bra OptPass |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
137 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
138 IsItM cmpa #'M |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
139 bne IsItX |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
140 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
141 * Process M here |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
142 sta <D.Mem |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
143 bra OptPass |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
144 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
145 IsItX cmpa #'X |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
146 bne ShowHelp |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
147 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
148 * Process X here |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
149 lda <Mode |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
150 ora #EXEC. |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
151 sta <Mode |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
152 bra OptPass |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
153 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
154 IFNE DOHELP |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
155 ShowHelp leax HelpMsg,pcr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
156 lda #2 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
157 ldy #HelpLen |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
158 os9 I$Write |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
159 bra ExitOk |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
160 ENDC |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
161 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
162 * Pass2 - process any non-options |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
163 * Entry: X = ptr to cmd line |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
164 Pass2 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
165 ldx <D.Prm |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
166 Pass21 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
167 * Skip over spaces |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
168 lda ,x+ |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
169 cmpa #C$SPAC |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
170 beq Pass21 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
171 cmpa #'- |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
172 bne Pass22 |
0 | 173 |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
174 EatOpts lda ,x+ |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
175 cmpa #C$SPAC |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
176 beq Pass21 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
177 cmpa #C$CR |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
178 bne EatOpts |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
179 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
180 * Check for EOL |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
181 Pass22 cmpa #C$CR |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
182 beq EndOfL |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
183 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
184 Call leax -1,x |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
185 sta nonopts,u |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
186 bsr DumpFile |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
187 bra Pass21 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
188 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
189 EndOfL tst <nonopts any non-options on cmd line? |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
190 bne ExitOk |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
191 tst <D.Mem memory option specified? |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
192 bne ShowHelp yes, no module specified, show help |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
193 clra stdin |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
194 bsr DumpIn |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
195 IFEQ DOHELP |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
196 ShowHelp |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
197 ENDC |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
198 ExitOk clrb |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
199 DoExit os9 F$Exit |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
200 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
201 mlink clra |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
202 pshs u |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
203 os9 F$Link |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
204 stu <D.Beg |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
205 puls u |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
206 bcc DumpIn |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
207 bra DoExit |
0 | 208 |
945 | 209 DumpFile tst <D.Mem |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
210 bne mlink |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
211 lda <Mode |
945 | 212 opath tfr x,y |
213 os9 I$Open | |
901 | 214 bcc DumpIn |
945 | 215 tfr y,x |
901 | 216 ora #DIR. try directory mode |
217 os9 I$Open open it | |
218 bcs DoExit branch if error | |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
219 DumpIn stx <D.Prm |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
220 sta <D.Opn |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
221 ldx <D.Beg |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
222 ldd M$Size,x |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
223 leax d,x |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
224 stx <D.End |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
225 clra |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
226 clrb |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
227 tfr d,x |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
228 onpas std <D.Adr+2 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
229 bcc notbg |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
230 leax 1,x |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
231 notbg stx <D.Adr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
232 tst <D.Hdr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
233 bne nohed |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
234 IFNE DOSCSIZ |
945 | 235 tst <narrow |
236 beq flpag | |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
237 aslb |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
238 ENDC |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
239 flpag tstb |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
240 bne nohed |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
241 leax caret,pcr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
242 lbsr print |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
243 ldb #16 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
244 leax title,pcr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
245 leay flund,pcr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
246 IFNE DOSCSIZ |
945 | 247 tst <narrow |
248 beq doprt | |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
249 ldb #8 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
250 leax short,pcr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
251 leay shund,pcr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
252 ENDC |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
253 doprt pshs y |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
254 clra |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
255 std <D.Len |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
256 bsr print |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
257 puls x |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
258 bsr print |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
259 nohed leax Txtbuf,u |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
260 stx <D.Ptr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
261 ldb <D.Len+1 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
262 lda #3 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
263 mul |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
264 addd #2 |
945 | 265 tst <narrow |
266 beq leayit | |
267 subd #4 | |
268 leayit leay d,x | |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
269 sty <D.Txt |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
270 lda #C$SPAC |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
271 ldb #BUFSZ-1 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
272 clbuf sta b,x |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
273 decb |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
274 bpl clbuf |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
275 ldb #D.Adr |
945 | 276 tst <narrow |
277 beq adlop | |
278 incb we skip first two bytes ... | |
279 incb ... if on a narrow screen | |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
280 adlop lda b,u |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
281 lbsr onbyt |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
282 incb |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
283 cmpb #D.Adr+4 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
284 bne adlop |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
285 ldx <D.Ptr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
286 leax 1,x |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
287 stx <D.Ptr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
288 bsr readi |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
289 bcs eofck |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
290 onlin lbsr onchr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
291 decb |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
292 ble enlin |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
293 lbsr onchr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
294 decb |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
295 ble enlin |
945 | 296 tst <narrow |
297 bne onlin | |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
298 lda #C$SPAC |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
299 bsr savec |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
300 bra onlin |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
301 enlin lda #C$CR |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
302 ldx <D.Txt |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
303 sta ,x |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
304 leax Txtbuf,u |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
305 bsr print |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
306 ldd <D.Adr+2 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
307 ldx <D.Adr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
308 addd <D.Len |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
309 lbra onpas |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
310 print ldy #BUFSZ |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
311 lda #1 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
312 os9 I$WritLn |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
313 lbcs DoExit |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
314 rts |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
315 readi ldy <D.Len |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
316 clrb |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
317 tst <D.Mem |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
318 bne redad |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
319 leax Datbuf,u |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
320 lda <D.Opn |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
321 os9 I$Read |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
322 bcs reded |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
323 tfr y,d |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
324 reded rts |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
325 redad ldd <D.End |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
326 ldx <D.Beg |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
327 subd <D.Beg |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
328 bne setct |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
329 coma |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
330 ldb #E$EOF |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
331 rts |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
332 setct subd <D.Len |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
333 bcs redof |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
334 clra |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
335 clrb |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
336 redof addd <D.Len |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
337 clr -1,s |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
338 leay d,x |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
339 sty <D.Beg |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
340 rts |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
341 eofck cmpb #E$EOF |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
342 orcc #Carry |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
343 lbne DoExit |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
344 clrb |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
345 ldx <D.Prm |
0 | 346 rts |
347 | |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
348 onibl anda #15 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
349 cmpa #9 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
350 bls nocom |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
351 adda #7 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
352 nocom adda #'0 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
353 savec pshs x |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
354 ldx <D.Ptr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
355 sta ,x+ |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
356 stx <D.Ptr |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
357 puls x,pc |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
358 onchr lda ,x+ |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
359 bsr onbyt |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
360 pshs x,a |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
361 anda #127 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
362 cmpa #C$SPAC |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
363 bcc savet |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
364 lda #'. |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
365 savet ldx <D.Txt |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
366 sta ,x+ |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
367 stx <D.Txt |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
368 puls a,x,pc |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
369 onbyt pshs a |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
370 lsra |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
371 lsra |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
372 lsra |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
373 lsra |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
374 bsr onibl |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
375 lda ,s |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
376 bsr onibl |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
377 puls a,pc |
0 | 378 |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
379 IFNE DOHELP |
886
6393d53ce3c7
Fixed help to be consistent with other utils, set DOHELP to 0
boisy
parents:
785
diff
changeset
|
380 HelpMsg fcc "Use: Dump [opts] [<path>] [opts]" |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
381 fcb C$CR,C$LF |
886
6393d53ce3c7
Fixed help to be consistent with other utils, set DOHELP to 0
boisy
parents:
785
diff
changeset
|
382 fcc " -h = no header" |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
383 fcb C$CR,C$LF |
886
6393d53ce3c7
Fixed help to be consistent with other utils, set DOHELP to 0
boisy
parents:
785
diff
changeset
|
384 fcc " -m = module in memory" |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
385 fcb C$CR,C$LF |
886
6393d53ce3c7
Fixed help to be consistent with other utils, set DOHELP to 0
boisy
parents:
785
diff
changeset
|
386 fcc " -x = file in exec dir" |
660
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
387 fcb C$CR,C$LF |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
388 HelpLen equ *-HelpMsg |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
389 ENDC |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
390 |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
391 emod |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
392 length equ * |
a4d2474884b4
Edition 6 now supports -d, -m, -h and -x options, more robust command line
boisy
parents:
200
diff
changeset
|
393 end |