gbdk_playground/small_sprite/small_sprite.lst

193 lines
10 KiB
Plaintext
Raw Normal View History

2020-07-11 13:41:14 +00:00
1 ;--------------------------------------------------------
2 ; File Created by SDCC : FreeWare ANSI-C Compiler
3 ; Version 2.3.1 Wed Jul 8 07:53:24 2020
4
5 ;--------------------------------------------------------
6 .module lcc2182930
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 16
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 ; small_sprite.c 1
48 ; small_sprite.c 11
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 10 53 .db 16
0007 7E 00 99 00 81 00 54 .db 0x7E, 0x00, 0x99, 0x00, 0x81, 0x00, 0xA5, 0x00
A5 00
000F 81 00 DB 00 C3 00 55 .db 0x81, 0x00, 0xDB, 0x00, 0xC3, 0x00, 0x3C, 0x00
3C 00
0017 00 56 .db 0
57 ;--------------------------------------------------------
58 ; Home
59 ;--------------------------------------------------------
60 .area _HOME
61 .area _CODE
62 ;--------------------------------------------------------
63 ; code
64 ;--------------------------------------------------------
65 .area _CODE
66 ; small_sprite.c 4
67 ; genLabel
68 ; genFunction
69 ; ---------------------------------
70 ; Function main
71 ; ---------------------------------
0000 72 ___main_start:
0000 73 _main:
0000 E8 FD 74 lda sp,-3(sp)
75 ; small_sprite.c 5
76 ; genAssign
0002 01 40 FF 77 ld bc,#0xFF40
78 ; genAssign
79 ; AOP_STK for _main_sloc0_1_0
0005 F8 01 80 lda hl,1(sp)
0007 36 40 81 ld (hl),#0x40
0009 23 82 inc hl
000A 36 FF 83 ld (hl),#0xFF
84 ; genPointerGet
85 ; AOP_STK for _main_sloc0_1_0
86 ; AOP_STK for _main_sloc1_1_0
000C 2B 87 dec hl
000D 5E 88 ld e,(hl)
000E 23 89 inc hl
000F 56 90 ld d,(hl)
0010 1A 91 ld a,(de)
0011 2B 92 dec hl
0012 2B 93 dec hl
94 ; genAnd
95 ; AOP_STK for _main_sloc1_1_0
0013 77 96 ld (hl),a
0014 7F 97 ld a,a
0015 E6 FB 98 and a,#0xFB
99 ; genAssign (pointer)
0017 02 100 ld (bc),a
101 ; small_sprite.c 6
102 ; genIpush
103 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
0018 21 00 00 104 ld hl,#_sprite
001B E5 105 push hl
106 ; genIpush
001C 21 00 08 107 ld hl,#0x0800
001F E5 108 push hl
109 ; genCall
0020 CD 00 00 110 call _set_sprite_data
0023 E8 04 111 lda sp,4(sp)
112 ; small_sprite.c 7
113 ; genIpush
114 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
0025 21 00 00 115 ld hl,#0x0000
0028 E5 116 push hl
117 ; genCall
0029 CD 00 00 118 call _set_sprite_tile
002C E8 02 119 lda sp,2(sp)
120 ; small_sprite.c 8
121 ; genIpush
122 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
002E 21 32 32 123 ld hl,#0x3232
0031 E5 124 push hl
125 ; genIpush
0032 3E 00 126 ld a,#0x00
0034 F5 127 push af
0035 33 128 inc sp
129 ; genCall
0036 CD 00 00 130 call _move_sprite
0039 E8 03 131 lda sp,3(sp)
132 ; small_sprite.c 9
133 ; genAssign
003B 01 40 FF 134 ld bc,#0xFF40
135 ; genAssign
136 ; AOP_STK for _main_sloc0_1_0
003E F8 01 137 lda hl,1(sp)
0040 36 40 138 ld (hl),#0x40
0042 23 139 inc hl
0043 36 FF 140 ld (hl),#0xFF
141 ; genPointerGet
142 ; AOP_STK for _main_sloc0_1_0
143 ; AOP_STK for _main_sloc1_1_0
0045 2B 144 dec hl
0046 5E 145 ld e,(hl)
0047 23 146 inc hl
0048 56 147 ld d,(hl)
0049 1A 148 ld a,(de)
004A 2B 149 dec hl
004B 2B 150 dec hl
151 ; genOr
152 ; AOP_STK for _main_sloc1_1_0
004C 77 153 ld (hl),a
004D 7F 154 ld a,a
004E F6 02 155 or a,#0x02
156 ; genAssign (pointer)
0050 02 157 ld (bc),a
158 ; genLabel
0051 159 00101$:
160 ; genEndFunction
0051 E8 03 161 lda sp,3(sp)
0053 C9 162 ret
0054 163 ___main_end:
164 .area _CODE
ASxxxx Assembler V01.75 (GameBoy Z80-like CPU), page 1.
Symbol Table
0 ___main_end 0054 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 54 flags 0
1 _DATA size 10 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 18 flags 0
7 _GSFINAL size 0 flags 0
8 _HOME size 0 flags 0