File: ld-group.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 (169 lines) | stat: -rw-r--r-- 1,667 bytes parent folder | download | duplicates (26)
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
	.section .text
	.org 0
	;; 8-bit load group
	ld a,i
	ld a,r
	ld a,a
	ld a,b
	ld a,c
	ld a,d
	ld a,e
	ld a,h
	ld a,l
	ld a,(hl)
	ld a,(bc)
	ld a,(de)
	ld a,(ix+5)
	ld a,(iy+5)
	ld a,(0x8405)
	ld a,0x11

	ld b,a
	ld b,b
	ld b,c
	ld b,d
	ld b,e
	ld b,h
	ld b,l
	ld b,(hl)
	ld b,(ix+5)
	ld b,(iy+5)
	ld b,0x11

	ld c,a
	ld c,b
	ld c,c
	ld c,d
	ld c,e
	ld c,h
	ld c,l
	ld c,(hl)
	ld c,(ix+5)
	ld c,(iy+5)
	ld c,0x11

	ld d,a
	ld d,b
	ld d,c
	ld d,d
	ld d,e
	ld d,h
	ld d,l
	ld d,(hl)
	ld d,(ix+5)
	ld d,(iy+5)
	ld d,0x11
	
	ld e,a
	ld e,b
	ld e,c
	ld e,d
	ld e,e
	ld e,h
	ld e,l
	ld e,(hl)
	ld e,(ix+5)
	ld e,(iy+5)
	ld e,0x11

	ld h,a
	ld h,b
	ld h,c
	ld h,d
	ld h,e
	ld h,h
	ld h,l
	ld h,(hl)
	ld h,(ix+5)
	ld h,(iy+5)
	ld h,0x11
	
	ld l,a
	ld l,b
	ld l,c
	ld l,d
	ld l,e
	ld l,h
	ld l,l
	ld l,(hl)
	ld l,(ix+5)
	ld l,(iy+5)
	ld l,0x11

	ld (hl),a
	ld (hl),b
	ld (hl),c
	ld (hl),d
	ld (hl),e
	ld (hl),h
	ld (hl),l
	ld (hl),0x11
	
	ld (bc),a
	ld (de),a

	ld (ix+5),a
	ld (ix+5),b
	ld (ix+5),c
	ld (ix+5),d
	ld (ix+5),e
	ld (ix+5),h
	ld (ix+5),l
	ld (ix+5),0x11

	ld (iy+5),a
	ld (iy+5),b
	ld (iy+5),c
	ld (iy+5),d
	ld (iy+5),e
	ld (iy+5),h
	ld (iy+5),l
	ld (iy+5),0x11

	ld (0x8407),a
	ld i,a
	ld r,a

	;;  16-bit load group --- ld, pop and push
	pop af
	
	ld bc,0x8405
	ld bc,(0x8405)
	pop bc
	
	ld de,0x8405
	ld de,(0x8405)
	pop de
	
	ld hl,0x8405
	ld hl,(0x8405)
	pop hl
	
	ld sp,hl
	ld sp,ix
	ld sp,iy
	ld sp,0x8402
	ld sp,(0x8302)
	
	ld ix,0x8405
	ld ix,(0x8405)
	pop ix
	
	ld iy,0x8405
	ld iy,(0x8405)
	pop iy
	
	ld (0x8432),bc
	ld (0x8432),de
	ld (0x8432),hl
	ld (0x8432),sp
	ld (0x8432),ix
	ld (0x8432),iy

	push af
	push bc
	push de
	push hl
	push ix
	push iy