File: branchs12.s

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 (111 lines) | stat: -rw-r--r-- 1,477 bytes parent folder | download | duplicates (39)
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
#
# Try to verify all branchs for 68HC12
# Ensures that PC-relative relocations are correct.
#
	sect .text
	globl start

start:
L0:
	;; Branchs to defined symbols, positive offset < 128
	bgt	L1
	bge	L1
	ble	L1
	blt	L1
	bhi	L1
	bhs	L1
	bcc	L1
	beq	L1
	bls	L1
	blo	L1
	bcs	L1
	bmi	L1
	bvs	L1
	bra	L1
	bvc	L1
	bne	L1
	bpl	L1
	brn	L1

	;; Branchs to defined symbols, negative offset > -128
	bgt	L0
	bge	L0
	ble	L0
	blt	L0
	bhi	L0
	bhs	L0
	bcc	L0
	beq	L0
	bls	L0
	blo	L0
	bcs	L0
	bmi	L0
	bvs	L0
	bra	L0
	bvc	L0
	bne	L0
	bpl	L0
	brn	L0
L1:
	;; Branchs to defined symbols, positive offset > -128
	lbgt	L2
	lbge	L2
	lble	L2
	lblt	L2
	lbhi	L2
	lbhs	L2
	lbcc	L2
	lbeq	L2
	lbls	L2
	lblo	L2
	lbcs	L2
	lbmi	L2
	lbvs	L2
	lbra	L2
	lbvc	L2
	lbne	L2
	lbpl	L2
	lbrn	L2

	;; Branchs to undefined symbols, translated into lbcc
	bgt	undefined
	bge	undefined
	ble	undefined
	blt	undefined
	bhi	undefined
	bhs	undefined
	bcc	undefined
	beq	undefined
	bls	undefined
	blo	undefined
	bcs	undefined
	bmi	undefined
	bvs	undefined
	bra	undefined
	bvc	undefined
	bne	undefined
	bpl	undefined
	brn	undefined

	;; Far branchs to undefined symbols
	lbgt	undefined+16
	lbge	undefined+16
	lble	undefined+16
	lblt	undefined+16
	lbhi	undefined+16
	lbhs	undefined+16
	lbcc	undefined+16
	lbeq	undefined+16
	lbls	undefined+16
	lblo	undefined+16
	lbcs	undefined+16
	lbmi	undefined+16
	lbvs	undefined+16
	lbra	undefined+16
	lbvc	undefined+16
	lbne	undefined+16
	lbpl	undefined+16
	lbrn	undefined+16
	.skip	200
L2:
	rts