annotate level2/cmds/dmem.asm @ 1487:97b3df00ef37

nil now part of vrn
author boisy
date Mon, 22 Dec 2003 21:59:00 +0000
parents bf6f854a4299
children 5e48668f30b2
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 * DMem - Dump memory from system
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 *
1255
bf6f854a4299 Changed revisions to 0
boisy
parents: 0
diff changeset
6 * Edt/Rev YYYY/MM/DD Modified by
bf6f854a4299 Changed revisions to 0
boisy
parents: 0
diff changeset
7 * Comment
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 * ------------------------------------------------------------------
1255
bf6f854a4299 Changed revisions to 0
boisy
parents: 0
diff changeset
9 * 2 ????/??/?? Kevin Darling
bf6f854a4299 Changed revisions to 0
boisy
parents: 0
diff changeset
10 * Started.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12 nam DMem
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 ttl Dump memory from system
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 * Disassembled 98/09/14 19:24:59 by Disasm v1.6 (C) 1988 by RML
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 tylg set Prgrm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 atrv set ReEnt+rev
1255
bf6f854a4299 Changed revisions to 0
boisy
parents: 0
diff changeset
23 rev set $00
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 edition set 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 u0000 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 u0001 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 u0002 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 u0003 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 u0005 rmb 3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 u0008 rmb 64
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 u0048 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 u0049 rmb 447
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 u0208 rmb 4296
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 name fcs /DMem/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 L0012 clr <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 clr <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 L0016 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 cmpa #C$SPAC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 beq L0046
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 cmpa #C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 beq L0046
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 suba #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 cmpa #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 bcs L002A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 anda #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 adda #$09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 L002A lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 sta <u0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 ldd <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 rol <u0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 rola
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 rol <u0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 rola
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 rol <u0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 rola
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 rol <u0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 rola
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 std <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 bra L0016
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 L0046 leax -1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 ldd <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 start lbsr L0128
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 lbeq L0119
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 cmpa #'-
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 bne L006D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 leax 1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 bsr L0012
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 leax >u0008,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 os9 F$GPrDsc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 lbcs L00BC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 bra L0073
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 L006D bsr L0012
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 clr <u0048
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 stb <u0049
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 L0073 lbsr L0128
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 lbeq L0119
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 lbsr L0012
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 std <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 lbsr L0128
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 beq L0092
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 lbsr L0012
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 cmpd #$1000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 bls L0095
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 ldd #$1000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 bra L0095
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 L0092 ldd #$0100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 L0095 std <u0005
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 leax >u0048,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 tfr x,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 ldy <u0005
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 ldx <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 leau >u0208,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 os9 F$CpyMem
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 bcs L00BC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 ldy <u0005
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 leax >u0208,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 os9 I$Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 L00BB clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 L00BC os9 F$Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 HelpTxt fcc "Use: DMem <block> <offset> [<length>] ! dump"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 fcc " or: DMem -<id> <offset> [<length>] ! dump"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 HelpTxtL equ *-HelpTxt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 L0119 leax >HelpTxt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 L011D ldy #HelpTxtL
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 lda #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 bra L00BB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 L0128 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 cmpa #C$SPAC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 beq L0128
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 leax -1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 cmpa #C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 end