annotate level1/cmds/dump.asm @ 21:6b140c61492c

Modified dump.asm slightly for better commenting Added newly disassembled grfo.asm, changed makefile
author boisy
date Sat, 06 Apr 2002 06:09:47 +0000
parents 6641a883d6b0
children e9ce43cc215e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 ********************************************************************
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2 * Dump - Show file contents in hex
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4 * $Id$
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 * 5 Original Tandy distribution version
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 nam Dump
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 ttl Show file contents in hex
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 * Disassembled 98/09/14 23:34:34 by Disasm v1.6 (C) 1988 by RML
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 tylg set Prgrm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 atrv set ReEnt+rev
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 rev set $01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 edition set 5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 u0000 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 u0001 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 u0002 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 u0003 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 u0004 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 u0005 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 u0006 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 u0008 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 u000A rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 u000C rmb 16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 u001C rmb 5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 u0021 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 u0022 rmb 16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 u0032 rmb 8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 u003A rmb 17
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 u004B rmb 16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 u005B rmb 201
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 name fcs /Dump/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 L0012 fcc "Addr 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 2 4 6 8 A C E"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 L0051 fcc "---- ---- ---- ---- ---- ---- ---- ---- ---- ----------------"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 L0090 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 L0091 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 fcc " 0 1 2 3 4 5 6 7 0 2 4 6"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 fcc "ADDR 8 9 A B C D E F 8 A C E""
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 L00D1 fcc "==== +-+-+-+-+-+-+-+- + + + + "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 L00F0 lda ,x+
21
6b140c61492c Modified dump.asm slightly for better commenting
boisy
parents: 0
diff changeset
63 cmpa #C$SPAC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 beq L00F0
21
6b140c61492c Modified dump.asm slightly for better commenting
boisy
parents: 0
diff changeset
65 leax -1,x
6b140c61492c Modified dump.asm slightly for better commenting
boisy
parents: 0
diff changeset
66 cmpa #C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 start lda #63
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 sta <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 clr <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 pshs y,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 lda #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 ldb #SS.ScSiz
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 os9 I$GetStt get size of window
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 bcc L0115
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 cmpb #E$UnkSvc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 beq L0120
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 puls y,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 lbra L01FE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 L0115 cmpx #80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 beq L0120
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 ldb #31
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 stb <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 inc <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 L0120 puls y,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 ldd #$0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 std <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 bsr L00F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 beq L0147
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 lda #READ.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 os9 I$Open
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 lbcs L01FE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 sta <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 bsr L00F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 beq L0147
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 lda #WRITE.
21
6b140c61492c Modified dump.asm slightly for better commenting
boisy
parents: 0
diff changeset
98 ldb #PREAD.+UPDAT.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 os9 I$Create
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 lbcs L01FE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 sta <u0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 L0147 ldd #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 L014A std <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 tst <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 beq L0156
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 bitb #$3F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 bne L017D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 bra L0159
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 L0156 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 bne L017D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 L0159 leax >L0090,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 lbsr L01EF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 leax >L0012,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 tst <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 beq L016C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 leax >L0091,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 L016C lbsr L01EF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 leax >L0051,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 tst <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 beq L017B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 leax >L00D1,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 L017B bsr L01EF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 L017D leax <u001C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 ldb <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 L0184 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 bne L0184
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 leax <u001C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 stx <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 lda <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 bsr L0201
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 lda <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 bsr L0201
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 leax <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 stx <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 leax <u004B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 stx <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 ldy #$0010
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 tst <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 beq L01B6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 leax <u0021,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 stx <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 leax <u0032,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 stx <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 ldy #$0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147 L01B6 leax u000C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
148 lda <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 os9 I$Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 bcs L01F9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151 tfr y,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 stb <u0005
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 L01C3 bsr L0223
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
155 beq L01D5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
156 bsr L0223
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
157 tst <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 bne L01D2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
160 bsr L0219
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 L01D2 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 bne L01C3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 L01D5 lda #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 sta <u005B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165 tst <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 beq L01DF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 sta <u003A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 L01DF leax <u001C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 bsr L01EF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 bcs L01FE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 ldd <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 addb <u0005
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 adca #$00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 lbra L014A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 L01EF ldy #$0050
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 lda <u0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
177 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 L01F9 cmpb #E$EOF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 bne L01FE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 L01FE os9 F$Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 L0201 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188 bsr L020F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 lda ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190 bsr L020F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 puls pc,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
192 L020F anda #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 cmpa #$09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 bls L0217
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 adda #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 L0217 adda #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 L0219 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
198 ldx <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 stx <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 puls pc,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 L0223 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 bsr L0201
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
204 pshs x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 anda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 cmpa #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 bcs L0233
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208 cmpa #$7E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 bcs L0235
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 L0233 lda #$2E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 L0235 ldx <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 stx <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 puls pc,x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 end