291 lines
15 KiB
Plaintext
291 lines
15 KiB
Plaintext
|
1 ;--------------------------------------------------------
|
|||
|
2 ; File Created by SDCC : FreeWare ANSI-C Compiler
|
|||
|
3 ; Version 2.3.1 Wed Jul 8 08:05:34 2020
|
|||
|
4
|
|||
|
5 ;--------------------------------------------------------
|
|||
|
6 .module lcc2202740
|
|||
|
7
|
|||
|
8 ;--------------------------------------------------------
|
|||
|
9 ; Public variables in this module
|
|||
|
10 ;--------------------------------------------------------
|
|||
|
11 .globl _main
|
|||
|
12 .globl _cards
|
|||
|
13 ;--------------------------------------------------------
|
|||
|
14 ; special function registers
|
|||
|
15 ;--------------------------------------------------------
|
|||
|
16 ;--------------------------------------------------------
|
|||
|
17 ; special function bits
|
|||
|
18 ;--------------------------------------------------------
|
|||
|
19 ;--------------------------------------------------------
|
|||
|
20 ; internal ram data
|
|||
|
21 ;--------------------------------------------------------
|
|||
|
22 .area _DATA
|
|||
|
0000 23 _cards::
|
|||
|
0000 24 .ds 128
|
|||
|
25 ;--------------------------------------------------------
|
|||
|
26 ; overlayable items in internal ram
|
|||
|
27 ;--------------------------------------------------------
|
|||
|
28 .area _OVERLAY
|
|||
|
29 ;--------------------------------------------------------
|
|||
|
30 ; indirectly addressable internal ram data
|
|||
|
31 ;--------------------------------------------------------
|
|||
|
32 .area _ISEG
|
|||
|
33 ;--------------------------------------------------------
|
|||
|
34 ; bit data
|
|||
|
35 ;--------------------------------------------------------
|
|||
|
36 .area _BSEG
|
|||
|
37 ;--------------------------------------------------------
|
|||
|
38 ; external ram data
|
|||
|
39 ;--------------------------------------------------------
|
|||
|
40 .area _XSEG
|
|||
|
41 ;--------------------------------------------------------
|
|||
|
42 ; global & static initialisations
|
|||
|
43 ;--------------------------------------------------------
|
|||
|
44 .area _GSINIT
|
|||
|
45 .area _GSFINAL
|
|||
|
46 .area _GSINIT
|
|||
|
47 ; big_sprite_animation.c 1
|
|||
|
48 ; big_sprite_animation.c 22
|
|||
|
49 ; genArrayInit
|
|||
|
50 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
0000 21 00 00 51 ld hl,#_cards
|
|||
|
0003 CD 00 00 52 call __initrleblock
|
|||
|
0006 0C 53 .db 12
|
|||
|
0007 FF FF 80 80 80 80 54 .db 0xFF, 0xFF, 0x80, 0x80, 0x80, 0x80, 0x81, 0x81
|
|||
|
81 81
|
|||
|
000F 83 83 87 87 55 .db 0x83, 0x83, 0x87, 0x87
|
|||
|
0013 F4 81 56 .db -12,0x81
|
|||
|
0015 0C 57 .db 12
|
|||
|
0016 83 83 87 87 80 80 58 .db 0x83, 0x83, 0x87, 0x87, 0x80, 0x80, 0xFF, 0xFF
|
|||
|
FF FF
|
|||
|
001E FF FF 01 01 59 .db 0xFF, 0xFF, 0x01, 0x01
|
|||
|
0022 EC C1 60 .db -20,0xC1
|
|||
|
0024 14 61 .db 20
|
|||
|
0025 E1 E1 F1 F1 01 01 62 .db 0xE1, 0xE1, 0xF1, 0xF1, 0x01, 0x01, 0xFF, 0xFF
|
|||
|
FF FF
|
|||
|
002D FF FF 80 80 83 83 63 .db 0xFF, 0xFF, 0x80, 0x80, 0x83, 0x83, 0x87, 0x87
|
|||
|
87 87
|
|||
|
0035 8E 8E 8C 8C 64 .db 0x8E, 0x8E, 0x8C, 0x8C
|
|||
|
0039 F8 80 65 .db -8,0x80
|
|||
|
003B 16 66 .db 22
|
|||
|
003C 81 81 83 83 87 87 67 .db 0x81, 0x81, 0x83, 0x83, 0x87, 0x87, 0x8F, 0x8F
|
|||
|
8F 8F
|
|||
|
0044 80 80 FF FF FF FF 68 .db 0x80, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x01
|
|||
|
01 01
|
|||
|
004C C1 C1 E1 E1 71 71 69 .db 0xC1, 0xC1, 0xE1, 0xE1, 0x71, 0x71
|
|||
|
0052 FA 31 70 .db -6,0x31
|
|||
|
0054 10 71 .db 16
|
|||
|
0055 71 71 E1 E1 C1 C1 72 .db 0x71, 0x71, 0xE1, 0xE1, 0xC1, 0xC1, 0x81, 0x81
|
|||
|
81 81
|
|||
|
005D F1 F1 F1 F1 01 01 73 .db 0xF1, 0xF1, 0xF1, 0xF1, 0x01, 0x01, 0xFF, 0xFF
|
|||
|
FF FF
|
|||
|
0065 00 74 .db 0
|
|||
|
75 ;--------------------------------------------------------
|
|||
|
76 ; Home
|
|||
|
77 ;--------------------------------------------------------
|
|||
|
78 .area _HOME
|
|||
|
79 .area _CODE
|
|||
|
80 ;--------------------------------------------------------
|
|||
|
81 ; code
|
|||
|
82 ;--------------------------------------------------------
|
|||
|
83 .area _CODE
|
|||
|
84 ; big_sprite_animation.c 4
|
|||
|
85 ; genLabel
|
|||
|
86 ; genFunction
|
|||
|
87 ; ---------------------------------
|
|||
|
88 ; Function main
|
|||
|
89 ; ---------------------------------
|
|||
|
0000 90 ___main_start:
|
|||
|
0000 91 _main:
|
|||
|
0000 E8 FD 92 lda sp,-3(sp)
|
|||
|
93 ; big_sprite_animation.c 5
|
|||
|
94 ; genAssign
|
|||
|
0002 01 40 FF 95 ld bc,#0xFF40
|
|||
|
96 ; genAssign
|
|||
|
97 ; AOP_STK for _main_sloc0_1_0
|
|||
|
0005 F8 01 98 lda hl,1(sp)
|
|||
|
0007 36 40 99 ld (hl),#0x40
|
|||
|
0009 23 100 inc hl
|
|||
|
000A 36 FF 101 ld (hl),#0xFF
|
|||
|
102 ; genPointerGet
|
|||
|
103 ; AOP_STK for _main_sloc0_1_0
|
|||
|
104 ; AOP_STK for _main_sloc1_1_0
|
|||
|
000C 2B 105 dec hl
|
|||
|
000D 5E 106 ld e,(hl)
|
|||
|
000E 23 107 inc hl
|
|||
|
000F 56 108 ld d,(hl)
|
|||
|
0010 1A 109 ld a,(de)
|
|||
|
0011 2B 110 dec hl
|
|||
|
0012 2B 111 dec hl
|
|||
|
112 ; genOr
|
|||
|
113 ; AOP_STK for _main_sloc1_1_0
|
|||
|
0013 77 114 ld (hl),a
|
|||
|
0014 7F 115 ld a,a
|
|||
|
0015 F6 04 116 or a,#0x04
|
|||
|
117 ; genAssign (pointer)
|
|||
|
0017 02 118 ld (bc),a
|
|||
|
119 ; big_sprite_animation.c 6
|
|||
|
120 ; genIpush
|
|||
|
121 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
0018 21 00 00 122 ld hl,#_cards
|
|||
|
001B E5 123 push hl
|
|||
|
124 ; genIpush
|
|||
|
001C 21 00 08 125 ld hl,#0x0800
|
|||
|
001F E5 126 push hl
|
|||
|
127 ; genCall
|
|||
|
0020 CD 00 00 128 call _set_sprite_data
|
|||
|
0023 E8 04 129 lda sp,4(sp)
|
|||
|
130 ; big_sprite_animation.c 7
|
|||
|
131 ; genIpush
|
|||
|
132 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
0025 21 00 00 133 ld hl,#0x0000
|
|||
|
0028 E5 134 push hl
|
|||
|
135 ; genCall
|
|||
|
0029 CD 00 00 136 call _set_sprite_tile
|
|||
|
002C E8 02 137 lda sp,2(sp)
|
|||
|
138 ; big_sprite_animation.c 8
|
|||
|
139 ; genIpush
|
|||
|
140 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
002E 21 4B 4B 141 ld hl,#0x4B4B
|
|||
|
0031 E5 142 push hl
|
|||
|
143 ; genIpush
|
|||
|
0032 3E 00 144 ld a,#0x00
|
|||
|
0034 F5 145 push af
|
|||
|
0035 33 146 inc sp
|
|||
|
147 ; genCall
|
|||
|
0036 CD 00 00 148 call _move_sprite
|
|||
|
0039 E8 03 149 lda sp,3(sp)
|
|||
|
150 ; big_sprite_animation.c 9
|
|||
|
151 ; genIpush
|
|||
|
152 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
003B 21 01 02 153 ld hl,#0x0201
|
|||
|
003E E5 154 push hl
|
|||
|
155 ; genCall
|
|||
|
003F CD 00 00 156 call _set_sprite_tile
|
|||
|
0042 E8 02 157 lda sp,2(sp)
|
|||
|
158 ; big_sprite_animation.c 10
|
|||
|
159 ; genIpush
|
|||
|
160 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
0044 21 53 4B 161 ld hl,#0x4B53
|
|||
|
0047 E5 162 push hl
|
|||
|
163 ; genIpush
|
|||
|
0048 3E 01 164 ld a,#0x01
|
|||
|
004A F5 165 push af
|
|||
|
004B 33 166 inc sp
|
|||
|
167 ; genCall
|
|||
|
004C CD 00 00 168 call _move_sprite
|
|||
|
004F E8 03 169 lda sp,3(sp)
|
|||
|
170 ; big_sprite_animation.c 11
|
|||
|
171 ; genAssign
|
|||
|
0051 01 40 FF 172 ld bc,#0xFF40
|
|||
|
173 ; genAssign
|
|||
|
174 ; AOP_STK for _main_sloc0_1_0
|
|||
|
0054 F8 01 175 lda hl,1(sp)
|
|||
|
0056 36 40 176 ld (hl),#0x40
|
|||
|
0058 23 177 inc hl
|
|||
|
0059 36 FF 178 ld (hl),#0xFF
|
|||
|
179 ; genPointerGet
|
|||
|
180 ; AOP_STK for _main_sloc0_1_0
|
|||
|
181 ; AOP_STK for _main_sloc1_1_0
|
|||
|
005B 2B 182 dec hl
|
|||
|
005C 5E 183 ld e,(hl)
|
|||
|
005D 23 184 inc hl
|
|||
|
005E 56 185 ld d,(hl)
|
|||
|
005F 1A 186 ld a,(de)
|
|||
|
0060 2B 187 dec hl
|
|||
|
0061 2B 188 dec hl
|
|||
|
189 ; genOr
|
|||
|
190 ; AOP_STK for _main_sloc1_1_0
|
|||
|
0062 77 191 ld (hl),a
|
|||
|
0063 7F 192 ld a,a
|
|||
|
0064 F6 02 193 or a,#0x02
|
|||
|
194 ; genAssign (pointer)
|
|||
|
0066 02 195 ld (bc),a
|
|||
|
196 ; big_sprite_animation.c 13
|
|||
|
197 ; genLabel
|
|||
|
0067 198 00102$:
|
|||
|
199 ; big_sprite_animation.c 14
|
|||
|
200 ; genIpush
|
|||
|
201 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
0067 21 00 03 202 ld hl,#0x0300
|
|||
|
006A E5 203 push hl
|
|||
|
204 ; genCall
|
|||
|
006B CD 00 00 205 call _set_sprite_tile
|
|||
|
006E E8 02 206 lda sp,2(sp)
|
|||
|
207 ; big_sprite_animation.c 15
|
|||
|
208 ; genIpush
|
|||
|
209 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
0070 21 01 05 210 ld hl,#0x0501
|
|||
|
0073 E5 211 push hl
|
|||
|
212 ; genCall
|
|||
|
0074 CD 00 00 213 call _set_sprite_tile
|
|||
|
0077 E8 02 214 lda sp,2(sp)
|
|||
|
215 ; big_sprite_animation.c 16
|
|||
|
216 ; genIpush
|
|||
|
217 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
0079 21 F4 01 218 ld hl,#0x01F4
|
|||
|
007C E5 219 push hl
|
|||
|
220 ; genCall
|
|||
|
007D CD 00 00 221 call _delay
|
|||
|
0080 E8 02 222 lda sp,2(sp)
|
|||
|
223 ; big_sprite_animation.c 17
|
|||
|
224 ; genIpush
|
|||
|
225 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
0082 21 00 00 226 ld hl,#0x0000
|
|||
|
0085 E5 227 push hl
|
|||
|
228 ; genCall
|
|||
|
0086 CD 00 00 229 call _set_sprite_tile
|
|||
|
0089 E8 02 230 lda sp,2(sp)
|
|||
|
231 ; big_sprite_animation.c 18
|
|||
|
232 ; genIpush
|
|||
|
233 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
008B 21 01 02 234 ld hl,#0x0201
|
|||
|
008E E5 235 push hl
|
|||
|
236 ; genCall
|
|||
|
008F CD 00 00 237 call _set_sprite_tile
|
|||
|
0092 E8 02 238 lda sp,2(sp)
|
|||
|
239 ; big_sprite_animation.c 19
|
|||
|
240 ; genIpush
|
|||
|
241 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
0094 21 F4 01 242 ld hl,#0x01F4
|
|||
|
0097 E5 243 push hl
|
|||
|
244 ; genCall
|
|||
|
0098 CD 00 00 245 call _delay
|
|||
|
009B E8 02 246 lda sp,2(sp)
|
|||
|
247 ; genGoto
|
|||
|
009D C3 67 00 248 jp 00102$
|
|||
|
249 ; genLabel
|
|||
|
00A0 250 00104$:
|
|||
|
251 ; genEndFunction
|
|||
|
00A0 E8 03 252 lda sp,3(sp)
|
|||
|
00A2 C9 253 ret
|
|||
|
00A3 254 ___main_end:
|
|||
|
255 .area _CODE
|
|||
|
ASxxxx Assembler V01.75 (GameBoy Z80-like CPU), page 1.
|
|||
|
|
|||
|
Symbol Table
|
|||
|
|
|||
|
0 ___main_end 00A3 R
|
|||
|
0 ___main_start 0000 R
|
|||
|
__initrleblock **** GX
|
|||
|
1 _cards 0000 GR
|
|||
|
_delay **** GX
|
|||
|
0 _main 0000 GR
|
|||
|
_move_sprite **** GX
|
|||
|
_set_sprite_data **** GX
|
|||
|
_set_sprite_tile **** GX
|
|||
|
|
|||
|
ASxxxx Assembler V01.75 (GameBoy Z80-like CPU), page 2.
|
|||
|
|
|||
|
Area Table
|
|||
|
|
|||
|
0 _CODE size A3 flags 0
|
|||
|
1 _DATA size 80 flags 0
|
|||
|
2 _OVERLAY size 0 flags 0
|
|||
|
3 _ISEG size 0 flags 0
|
|||
|
4 _BSEG size 0 flags 0
|
|||
|
5 _XSEG size 0 flags 0
|
|||
|
6 _GSINIT size 66 flags 0
|
|||
|
7 _GSFINAL size 0 flags 0
|
|||
|
8 _HOME size 0 flags 0
|