Commit | Line | Data |
---|---|---|
6655dba2 SB |
1 | .module longpolls |
2 | .optsdcc -mz80 | |
3 | ||
4 | valueadr = 0x1234 | |
5 | ||
6 | .globl function | |
7 | .globl _start | |
8 | .globl _finish | |
9 | ||
10 | .area _DABS (ABS) | |
11 | .area _HOME | |
12 | .area _CODE | |
13 | _start:: | |
14 | ;comment | |
15 | ld hl, #4+0 | |
16 | 00000$: | |
17 | adc a, a | |
18 | adc a, b | |
19 | adc a, c | |
20 | adc a, d | |
21 | adc a, e | |
22 | adc a, h | |
23 | adc a, l | |
24 | adc a, ixh | |
25 | adc a, ixl | |
26 | adc a, iyh | |
27 | adc a, iyl | |
28 | adc a, #0xa5 | |
29 | adc a, (hl) | |
30 | adc a, 5 (ix) | |
31 | adc a, -2 (iy) | |
32 | 00100$: | |
33 | add a, a | |
34 | add a, b | |
35 | add a, c | |
36 | add a, d | |
37 | add a, e | |
38 | add a, h | |
39 | add a, l | |
40 | add a, ixh | |
41 | add a, ixl | |
42 | add a, iyh | |
43 | add a, iyl | |
44 | add a, #0xa5 | |
45 | add a, (hl) | |
46 | add a, 5 (ix) | |
47 | add a, -2 (iy) | |
48 | 00200$: | |
49 | and a, a | |
50 | and a, b | |
51 | and a, c | |
52 | and a, d | |
53 | and a, e | |
54 | and a, h | |
55 | and a, l | |
56 | and a, ixh | |
57 | and a, ixl | |
58 | and a, iyh | |
59 | and a, iyl | |
60 | and a, #0xa5 | |
61 | and a, (hl) | |
62 | and a, 5 (ix) | |
63 | and a, -2 (iy) | |
64 | 00300$: | |
65 | cp a, a | |
66 | cp a, b | |
67 | cp a, c | |
68 | cp a, d | |
69 | cp a, e | |
70 | cp a, h | |
71 | cp a, l | |
72 | cp a, ixh | |
73 | cp a, ixl | |
74 | cp a, iyh | |
75 | cp a, iyl | |
76 | cp a, #0xa5 | |
77 | cp a, (hl) | |
78 | cp a, 5 (ix) | |
79 | cp a, -2 (iy) | |
80 | 00400$: | |
81 | or a, a | |
82 | or a, b | |
83 | or a, c | |
84 | or a, d | |
85 | or a, e | |
86 | or a, h | |
87 | or a, l | |
88 | or a, ixh | |
89 | or a, ixl | |
90 | or a, iyh | |
91 | or a, iyl | |
92 | or a, #0xa5 | |
93 | or a, (hl) | |
94 | or a, 5 (ix) | |
95 | or a, -2 (iy) | |
96 | 00500$: | |
97 | sbc a, a | |
98 | sbc a, b | |
99 | sbc a, c | |
100 | sbc a, d | |
101 | sbc a, e | |
102 | sbc a, h | |
103 | sbc a, l | |
104 | sbc a, ixh | |
105 | sbc a, ixl | |
106 | sbc a, iyh | |
107 | sbc a, iyl | |
108 | sbc a, #0xa5 | |
109 | sbc a, (hl) | |
110 | sbc a, 5 (ix) | |
111 | sbc a, -2 (iy) | |
112 | 00600$: | |
113 | sub a, a | |
114 | sub a, b | |
115 | sub a, c | |
116 | sub a, d | |
117 | sub a, e | |
118 | sub a, h | |
119 | sub a, l | |
120 | sub a, ixh | |
121 | sub a, ixl | |
122 | sub a, iyh | |
123 | sub a, iyl | |
124 | sub a, #0xa5 | |
125 | sub a, (hl) | |
126 | sub a, 5 (ix) | |
127 | sub a, -2 (iy) | |
128 | 00700$: | |
129 | xor a, a | |
130 | xor a, b | |
131 | xor a, c | |
132 | xor a, d | |
133 | xor a, e | |
134 | xor a, h | |
135 | xor a, l | |
136 | xor a, ixh | |
137 | xor a, ixl | |
138 | xor a, iyh | |
139 | xor a, iyl | |
140 | xor a, #0xa5 | |
141 | xor a, (hl) | |
142 | xor a, 5 (ix) | |
143 | xor a, -2 (iy) | |
144 | ||
145 | jp 0$ | |
146 | jp 100$ | |
147 | jp 200$ | |
148 | jp 300$ | |
149 | jp 500$ | |
150 | jp 600$ | |
151 | jp 700$ | |
152 | .L_func: | |
153 | ld hl,0 | |
154 | ld (hl),#<function | |
155 | 00100$: | |
156 | inc hl | |
157 | ld (hl),#>function | |
158 | 00600$: | |
159 | jr 100$ | |
160 | _finish:: | |
161 | ld a, 2 (iy) | |
162 | ld -1 (ix), a | |
163 | ld a, (#valueadr+#0) | |
164 | ret | |
165 | .dw #0x1f27 | |
166 | .db #0x2f | |
167 | .end |