221 lines
11 KiB
Plaintext
221 lines
11 KiB
Plaintext
|
1 ;--------------------------------------------------------
|
|||
|
2 ; File Created by SDCC : FreeWare ANSI-C Compiler
|
|||
|
3 ; Version 2.3.1 Wed Jul 8 08:00:47 2020
|
|||
|
4
|
|||
|
5 ;--------------------------------------------------------
|
|||
|
6 .module lcc2194330
|
|||
|
7
|
|||
|
8 ;--------------------------------------------------------
|
|||
|
9 ; Public variables in this module
|
|||
|
10 ;--------------------------------------------------------
|
|||
|
11 .globl _main
|
|||
|
12 .globl _sprite
|
|||
|
13 ;--------------------------------------------------------
|
|||
|
14 ; special function registers
|
|||
|
15 ;--------------------------------------------------------
|
|||
|
16 ;--------------------------------------------------------
|
|||
|
17 ; special function bits
|
|||
|
18 ;--------------------------------------------------------
|
|||
|
19 ;--------------------------------------------------------
|
|||
|
20 ; internal ram data
|
|||
|
21 ;--------------------------------------------------------
|
|||
|
22 .area _DATA
|
|||
|
0000 23 _sprite::
|
|||
|
0000 24 .ds 64
|
|||
|
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.c 1
|
|||
|
48 ; big_sprite.c 12
|
|||
|
49 ; genArrayInit
|
|||
|
50 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
0000 21 00 00 51 ld hl,#_sprite
|
|||
|
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 08 61 .db 8
|
|||
|
0025 E1 E1 F1 F1 01 01 62 .db 0xE1, 0xE1, 0xF1, 0xF1, 0x01, 0x01, 0xFF, 0xFF
|
|||
|
FF FF
|
|||
|
002D 00 63 .db 0
|
|||
|
64 ;--------------------------------------------------------
|
|||
|
65 ; Home
|
|||
|
66 ;--------------------------------------------------------
|
|||
|
67 .area _HOME
|
|||
|
68 .area _CODE
|
|||
|
69 ;--------------------------------------------------------
|
|||
|
70 ; code
|
|||
|
71 ;--------------------------------------------------------
|
|||
|
72 .area _CODE
|
|||
|
73 ; big_sprite.c 3
|
|||
|
74 ; genLabel
|
|||
|
75 ; genFunction
|
|||
|
76 ; ---------------------------------
|
|||
|
77 ; Function main
|
|||
|
78 ; ---------------------------------
|
|||
|
0000 79 ___main_start:
|
|||
|
0000 80 _main:
|
|||
|
0000 E8 FD 81 lda sp,-3(sp)
|
|||
|
82 ; big_sprite.c 4
|
|||
|
83 ; genAssign
|
|||
|
0002 01 40 FF 84 ld bc,#0xFF40
|
|||
|
85 ; genAssign
|
|||
|
86 ; AOP_STK for _main_sloc0_1_0
|
|||
|
0005 F8 01 87 lda hl,1(sp)
|
|||
|
0007 36 40 88 ld (hl),#0x40
|
|||
|
0009 23 89 inc hl
|
|||
|
000A 36 FF 90 ld (hl),#0xFF
|
|||
|
91 ; genPointerGet
|
|||
|
92 ; AOP_STK for _main_sloc0_1_0
|
|||
|
93 ; AOP_STK for _main_sloc1_1_0
|
|||
|
000C 2B 94 dec hl
|
|||
|
000D 5E 95 ld e,(hl)
|
|||
|
000E 23 96 inc hl
|
|||
|
000F 56 97 ld d,(hl)
|
|||
|
0010 1A 98 ld a,(de)
|
|||
|
0011 2B 99 dec hl
|
|||
|
0012 2B 100 dec hl
|
|||
|
101 ; genOr
|
|||
|
102 ; AOP_STK for _main_sloc1_1_0
|
|||
|
0013 77 103 ld (hl),a
|
|||
|
0014 7F 104 ld a,a
|
|||
|
0015 F6 04 105 or a,#0x04
|
|||
|
106 ; genAssign (pointer)
|
|||
|
0017 02 107 ld (bc),a
|
|||
|
108 ; big_sprite.c 5
|
|||
|
109 ; genIpush
|
|||
|
110 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
0018 21 00 00 111 ld hl,#_sprite
|
|||
|
001B E5 112 push hl
|
|||
|
113 ; genIpush
|
|||
|
001C 21 00 04 114 ld hl,#0x0400
|
|||
|
001F E5 115 push hl
|
|||
|
116 ; genCall
|
|||
|
0020 CD 00 00 117 call _set_sprite_data
|
|||
|
0023 E8 04 118 lda sp,4(sp)
|
|||
|
119 ; big_sprite.c 6
|
|||
|
120 ; genIpush
|
|||
|
121 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
0025 21 00 00 122 ld hl,#0x0000
|
|||
|
0028 E5 123 push hl
|
|||
|
124 ; genCall
|
|||
|
0029 CD 00 00 125 call _set_sprite_tile
|
|||
|
002C E8 02 126 lda sp,2(sp)
|
|||
|
127 ; big_sprite.c 7
|
|||
|
128 ; genIpush
|
|||
|
129 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
002E 21 4B 4B 130 ld hl,#0x4B4B
|
|||
|
0031 E5 131 push hl
|
|||
|
132 ; genIpush
|
|||
|
0032 3E 00 133 ld a,#0x00
|
|||
|
0034 F5 134 push af
|
|||
|
0035 33 135 inc sp
|
|||
|
136 ; genCall
|
|||
|
0036 CD 00 00 137 call _move_sprite
|
|||
|
0039 E8 03 138 lda sp,3(sp)
|
|||
|
139 ; big_sprite.c 8
|
|||
|
140 ; genIpush
|
|||
|
141 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
003B 21 01 02 142 ld hl,#0x0201
|
|||
|
003E E5 143 push hl
|
|||
|
144 ; genCall
|
|||
|
003F CD 00 00 145 call _set_sprite_tile
|
|||
|
0042 E8 02 146 lda sp,2(sp)
|
|||
|
147 ; big_sprite.c 9
|
|||
|
148 ; genIpush
|
|||
|
149 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
|
|||
|
0044 21 53 4B 150 ld hl,#0x4B53
|
|||
|
0047 E5 151 push hl
|
|||
|
152 ; genIpush
|
|||
|
0048 3E 01 153 ld a,#0x01
|
|||
|
004A F5 154 push af
|
|||
|
004B 33 155 inc sp
|
|||
|
156 ; genCall
|
|||
|
004C CD 00 00 157 call _move_sprite
|
|||
|
004F E8 03 158 lda sp,3(sp)
|
|||
|
159 ; big_sprite.c 10
|
|||
|
160 ; genAssign
|
|||
|
0051 01 40 FF 161 ld bc,#0xFF40
|
|||
|
162 ; genAssign
|
|||
|
163 ; AOP_STK for _main_sloc0_1_0
|
|||
|
0054 F8 01 164 lda hl,1(sp)
|
|||
|
0056 36 40 165 ld (hl),#0x40
|
|||
|
0058 23 166 inc hl
|
|||
|
0059 36 FF 167 ld (hl),#0xFF
|
|||
|
168 ; genPointerGet
|
|||
|
169 ; AOP_STK for _main_sloc0_1_0
|
|||
|
170 ; AOP_STK for _main_sloc1_1_0
|
|||
|
005B 2B 171 dec hl
|
|||
|
005C 5E 172 ld e,(hl)
|
|||
|
005D 23 173 inc hl
|
|||
|
005E 56 174 ld d,(hl)
|
|||
|
005F 1A 175 ld a,(de)
|
|||
|
0060 2B 176 dec hl
|
|||
|
0061 2B 177 dec hl
|
|||
|
178 ; genOr
|
|||
|
179 ; AOP_STK for _main_sloc1_1_0
|
|||
|
0062 77 180 ld (hl),a
|
|||
|
0063 7F 181 ld a,a
|
|||
|
0064 F6 02 182 or a,#0x02
|
|||
|
183 ; genAssign (pointer)
|
|||
|
0066 02 184 ld (bc),a
|
|||
|
185 ; genLabel
|
|||
|
0067 186 00101$:
|
|||
|
187 ; genEndFunction
|
|||
|
0067 E8 03 188 lda sp,3(sp)
|
|||
|
0069 C9 189 ret
|
|||
|
006A 190 ___main_end:
|
|||
|
191 .area _CODE
|
|||
|
ASxxxx Assembler V01.75 (GameBoy Z80-like CPU), page 1.
|
|||
|
|
|||
|
Symbol Table
|
|||
|
|
|||
|
0 ___main_end 006A R
|
|||
|
0 ___main_start 0000 R
|
|||
|
__initrleblock **** GX
|
|||
|
0 _main 0000 GR
|
|||
|
_move_sprite **** GX
|
|||
|
_set_sprite_data **** GX
|
|||
|
_set_sprite_tile **** GX
|
|||
|
1 _sprite 0000 GR
|
|||
|
|
|||
|
ASxxxx Assembler V01.75 (GameBoy Z80-like CPU), page 2.
|
|||
|
|
|||
|
Area Table
|
|||
|
|
|||
|
0 _CODE size 6A flags 0
|
|||
|
1 _DATA size 40 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 2E flags 0
|
|||
|
7 _GSFINAL size 0 flags 0
|
|||
|
8 _HOME size 0 flags 0
|