File: opers12-dwarf2.d

package info (click to toggle)
binutils 2.32.51.20190821-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 309,676 kB
  • sloc: ansic: 1,201,497; asm: 658,869; cpp: 130,432; exp: 69,370; makefile: 56,804; sh: 23,583; lisp: 14,519; yacc: 14,467; perl: 2,111; ada: 1,681; lex: 1,649; pascal: 1,446; python: 991; cs: 879; sed: 195; xml: 95; awk: 25
file content (242 lines) | stat: -rw-r--r-- 5,531 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
#objdump: -S
#as: -m68hc12 -gdwarf2
#name: Dwarf2 test on opers12.s
#source: opers12.s

.*: +file format elf32\-m68hc12

Disassembly of section .text:

0+00 <start>:
#...
	sect .text
	globl start

start:
	anda	\[12,x\]		; Indexed indirect
   0:	a4 e3 00 0c 	anda	\[0xc,X\]
	ldaa	#10
   4:	86 0a       	ldaa	#0xa
	ldx	L1
   6:	fe 00 00    	ldx	0x0 <start>

0+09 <L1>:
L1:	ldy	,x
   9:	ed 00       	ldy	0x0,X
	addd	1,y		; Offset from register
   b:	e3 41       	addd	0x1,Y
	subd	\-1,y
   d:	a3 5f       	subd	0xffff,Y
	eora	15,y
   f:	a8 4f       	eora	0xf,Y
	eora	\-16,y
  11:	a8 50       	eora	0xfff0,Y
	eorb	16,y
  13:	e8 e8 10    	eorb	0x10,Y
	eorb	\-17,y
  16:	e8 e9 ef    	eorb	0xffef,Y
	oraa	128,sp
  19:	aa f0 80    	oraa	0x80,SP
	orab	\-128,sp
  1c:	ea f1 80    	orab	0xff80,SP
	orab	255,x
  1f:	ea e0 ff    	orab	0xff,X
	orab	\-256,x
  22:	ea e1 00    	orab	0xff00,X
	anda	256,x
  25:	a4 e2 01 00 	anda	0x100,X
	andb	\-257,x
  29:	e4 e2 fe ff 	andb	0xfeff,X
	anda	\[12,x\]		; Indexed indirect \(16\-bit offset\)
  2d:	a4 e3 00 0c 	anda	\[0xc,X\]
	ldaa	\[257,y\]
  31:	a6 eb 01 01 	ldaa	\[0x101,Y\]
	ldab	\[32767,sp\]
  35:	e6 f3 7f ff 	ldab	\[0x7fff,SP\]
	ldd	\[32768,pc\]
  39:	ec fb 80 00 	ldd	\[0x8000,PC\]
	ldd	L1,pc
  3d:	ec f9 c9    	ldd	0xffc9,PC \{0x9 <L1>\}
	std	a,x		; Two\-reg index
  40:	6c e4       	std	A,X
	ldx	b,x
  42:	ee e5       	ldx	B,X
	stx	d,y
  44:	6e ee       	stx	D,Y
	addd	1,\+x		; Pre\-Auto inc
  46:	e3 20       	addd	1,\+X
	addd	2,\+x
  48:	e3 21       	addd	2,\+X
	addd	8,\+x
  4a:	e3 27       	addd	8,\+X
	addd	1,sp\+		; Post\-Auto inc
  4c:	e3 b0       	addd	1,SP\+
	addd	2,sp\+
  4e:	e3 b1       	addd	2,SP\+
	addd	8,sp\+
  50:	e3 b7       	addd	8,SP\+
	subd	1,\-y		; Pre\-Auto dec
  52:	a3 6f       	subd	1,\-Y
	subd	2,\-y
  54:	a3 6e       	subd	2,\-Y
	subd	8,\-y
  56:	a3 68       	subd	8,\-Y
	addd	1,y\-		; Post\-Auto dec
  58:	e3 7f       	addd	1,Y\-
	addd	2,y\-
  5a:	e3 7e       	addd	2,Y\-
	addd	8,y\-
  5c:	e3 78       	addd	8,Y\-
	std	\[d,x\]		; Indexed indirect with two reg index
  5e:	6c e7       	std	\[D,X\]
	std	\[d,y\]
  60:	6c ef       	std	\[D,Y\]
	std	\[d,sp\]
  62:	6c f7       	std	\[D,SP\]
	std	\[d,pc\]
  64:	6c ff       	std	\[D,PC\]
	beq	L1
  66:	27 a1       	beq	0x9 <L1>
	lbeq	start
  68:	18 27 ff 94 	lbeq	0x0 <start>
	lbcc	L2
  6c:	18 24 00 4c 	lbcc	0xbc <L2>
;;
;; Move insn with various operands
;; 
	movb	start, 1,x
  70:	18 09 01 00 	movb	0x0 <start>, 0x1,X
  74:	00 
	movw	1,x, start
  75:	18 05 01 00 	movw	0x1,X, 0x0 <start>
  79:	00 
	movb	start, 1,\+x
  7a:	18 09 20 00 	movb	0x0 <start>, 1,\+X
  7e:	00 
	movb	start, 1,\-x
  7f:	18 09 2f 00 	movb	0x0 <start>, 1,\-X
  83:	00 
	movb	#23, 1,\-sp
  84:	18 08 af 17 	movb	#0x17, 1,\-SP
	movb	L1, L2
  88:	18 0c 00 00 	movb	0x0 <start>, 0x0 <start>
  8c:	00 00 
	movb	L1, a,x
  8e:	18 09 e4 00 	movb	0x0 <start>, A,X
  92:	00 
	movw	L1, b,x
  93:	18 01 e5 00 	movw	0x0 <start>, B,X
  97:	00 
	movw	L1, d,x
  98:	18 01 e6 00 	movw	0x0 <start>, D,X
  9c:	00 
	movw	d,x, a,x
  9d:	18 02 e6 e4 	movw	D,X, A,X
	movw	b,sp, d,pc
  a1:	18 02 f5 fe 	movw	B,SP, D,PC
	movw	b,sp, L1
  a5:	18 05 f5 00 	movw	B,SP, 0x0 <start>
  a9:	00 
	movw	b,sp, 1,x
  aa:	18 02 f5 01 	movw	B,SP, 0x1,X
	movw	d,x, a,y
  ae:	18 02 e6 ec 	movw	D,X, A,Y
	trap	#0x30
  b2:	18 30       	trap	#0x30
	trap	#0x39
  b4:	18 39       	trap	#0x39
	trap	#0x40
  b6:	18 40       	trap	#0x40
	trap	#0x80
  b8:	18 80       	trap	#0x80
	trap	#255
  ba:	18 ff       	trap	#0xff

0+bc <L2>:
L2:	
	movw 1,x,2,x
  bc:	18 02 01 02 	movw	0x1,X, 0x2,X
	movw \-1,\-1
  c0:	18 04 ff ff 	movw	0xffff <bb\+0xd7ff>, 0xffff <bb\+0xd7ff>
  c4:	ff ff 
	movw \-1,1,x
  c6:	18 01 01 ff 	movw	0xffff <bb\+0xd7ff>, 0x1,X
  ca:	ff 
	movw #\-1,1,x
  cb:	18 00 01 ff 	movw	#0xffff <bb\+0xd7ff>, 0x1,X
  cf:	ff 
	movw 3,8
  d0:	18 04 00 03 	movw	0x3 <start\+0x3>, 0x8 <start\+0x8>
  d4:	00 08 
	movw #3,3
  d6:	18 03 00 03 	movw	#0x3 <start\+0x3>, 0x3 <start\+0x3>
  da:	00 03 
	movw #3,1,x
  dc:	18 00 01 00 	movw	#0x3 <start\+0x3>, 0x1,X
  e0:	03 
	movw 3,1,x
  e1:	18 01 01 00 	movw	0x3 <start\+0x3>, 0x1,X
  e5:	03 
	movw 3,\+2,x
  e6:	18 01 02 00 	movw	0x3 <start\+0x3>, 0x2,X
  ea:	03 
	movw 4,\-2,x
  eb:	18 01 1e 00 	movw	0x4 <start\+0x4>, 0xfffe,X
  ef:	04 
	rts
  f0:	3d          	rts

0+f1 <post_indexed_pb>:
;;
;; Post\-index byte with relocation
;; 
post_indexed_pb:
t1:
	leas	abort,x
  f1:	1b e2 00 00 	leas	0x0,X

0+f5 <t2>:
t2:
	leax	t2\-t1,y
  f5:	1a 44       	leax	0x4,Y
	leax	toto,x
  f7:	1a e0 64    	leax	0x64,X
	leas	toto\+titi,sp
  fa:	1b f0 6e    	leas	0x6e,SP
	leay	titi,x
  fd:	19 0a       	leay	0xa,X
	leas	bb,y
  ff:	1b ea 28 00 	leas	0x2800,Y
	leas	min5b,pc
 103:	1b d0       	leas	0xfff0,PC \{0xf5 <t2>\}
	leas	max5b,pc
 105:	1b cf       	leas	0xf,PC \{0x116 <t2\+0x21>\}
	leas	min9b,pc
 107:	1b fa ff 00 	leas	0xff00,PC \{0xb <L1\+0x2>\}
	leas	max9b,pc
 10b:	1b f8 ff    	leas	0xff,PC \{0x20d <L0\^A\+0xd9>\}

;;
;; Disassembler bug with movb
;;
	movb	#23,0x2345
 10e:	18 0b 17 23 	movb	#0x17, 0x2345 <L0\^A\+0x2211>
 112:	45 
	movb	#40,12,sp
 113:	18 08 8c 28 	movb	#0x28, 0xc,SP
	movb	#39,3,\+sp
 117:	18 08 a2 27 	movb	#0x27, 3,\+SP
	movb	#20,14,sp
 11b:	18 08 8e 14 	movb	#0x14, 0xe,SP
	movw	#0x3210,0x3456
 11f:	18 03 32 10 	movw	#0x3210 <bb\+0xa10>, 0x3456 <bb\+0xc56>
 123:	34 56 
	movw	#0x4040,12,sp
 125:	18 00 8c 40 	movw	#0x4040 <bb\+0x1840>, 0xc,SP
 129:	40 
	movw	#0x3900,3,\+sp
 12a:	18 00 a2 39 	movw	#0x3900 <bb\+0x1100>, 3,\+SP
 12e:	00 
	movw	#0x2000,14,sp
 12f:	18 00 8e 20 	movw	#0x2000 <L0\^A\+0x1ecc>, 0xe,SP
 133:	00