gbdk_playground/input_wait/input_wait.lst
2020-07-11 08:41:14 -05:00

185 lines
9.4 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1 ;--------------------------------------------------------
2 ; File Created by SDCC : FreeWare ANSI-C Compiler
3 ; Version 2.3.1 Wed Jul 8 08:38:44 2020
4
5 ;--------------------------------------------------------
6 .module lcc2236500
7
8 ;--------------------------------------------------------
9 ; Public variables in this module
10 ;--------------------------------------------------------
11 .globl _main
12 ;--------------------------------------------------------
13 ; special function registers
14 ;--------------------------------------------------------
15 ;--------------------------------------------------------
16 ; special function bits
17 ;--------------------------------------------------------
18 ;--------------------------------------------------------
19 ; internal ram data
20 ;--------------------------------------------------------
21 .area _DATA
22 ;--------------------------------------------------------
23 ; overlayable items in internal ram
24 ;--------------------------------------------------------
25 .area _OVERLAY
26 ;--------------------------------------------------------
27 ; indirectly addressable internal ram data
28 ;--------------------------------------------------------
29 .area _ISEG
30 ;--------------------------------------------------------
31 ; bit data
32 ;--------------------------------------------------------
33 .area _BSEG
34 ;--------------------------------------------------------
35 ; external ram data
36 ;--------------------------------------------------------
37 .area _XSEG
38 ;--------------------------------------------------------
39 ; global & static initialisations
40 ;--------------------------------------------------------
41 .area _GSINIT
42 .area _GSFINAL
43 .area _GSINIT
44 ;--------------------------------------------------------
45 ; Home
46 ;--------------------------------------------------------
47 .area _HOME
48 .area _CODE
49 ;--------------------------------------------------------
50 ; code
51 ;--------------------------------------------------------
52 .area _CODE
53 ; input_wait.c 4
54 ; genLabel
55 ; genFunction
56 ; ---------------------------------
57 ; Function main
58 ; ---------------------------------
0000 59 ___main_start:
0000 60 _main:
61
62 ; input_wait.c 5
63 ; genLabel
0000 64 00102$:
65 ; input_wait.c 6
66 ; genIpush
67 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
0000 21 3D 00 68 ld hl,#__str_0
0003 E5 69 push hl
70 ; genCall
0004 CD 00 00 71 call _printf
0007 E8 02 72 lda sp,2(sp)
73 ; input_wait.c 7
74 ; genIpush
75 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
0009 3E 80 76 ld a,#0x80
000B F5 77 push af
000C 33 78 inc sp
79 ; genCall
000D CD 00 00 80 call _waitpad
0010 E8 01 81 lda sp,1(sp)
82 ; input_wait.c 9
83 ; genIpush
84 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
0012 21 4B 00 85 ld hl,#__str_1
0015 E5 86 push hl
87 ; genCall
0016 CD 00 00 88 call _printf
0019 E8 02 89 lda sp,2(sp)
90 ; input_wait.c 10
91 ; genIpush
92 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
001B 3E 10 93 ld a,#0x10
001D F5 94 push af
001E 33 95 inc sp
96 ; genCall
001F CD 00 00 97 call _waitpad
0022 E8 01 98 lda sp,1(sp)
99 ; input_wait.c 11
100 ; genIpush
101 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
0024 21 61 00 102 ld hl,#__str_2
0027 E5 103 push hl
104 ; genCall
0028 CD 00 00 105 call _printf
002B E8 02 106 lda sp,2(sp)
107 ; input_wait.c 12
108 ; genCall
109 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
002D CD 00 00 110 call _waitpadup
111 ; input_wait.c 13
112 ; genIpush
113 ; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0
0030 21 73 00 114 ld hl,#__str_3
0033 E5 115 push hl
116 ; genCall
0034 CD 00 00 117 call _printf
0037 E8 02 118 lda sp,2(sp)
119 ; genGoto
0039 C3 00 00 120 jp 00102$
121 ; genLabel
003C 122 00104$:
123 ; genEndFunction
124
003C C9 125 ret
003D 126 ___main_end:
003D 127 __str_0:
003D 50 72 65 73 73 20 128 .ascii "Press Start"
53 74 61 72 74
0048 0A 129 .db 0x0A
0049 0A 130 .db 0x0A
004A 00 131 .db 0x00
004B 132 __str_1:
004B 50 6C 65 61 73 65 133 .ascii "Please hold down A!"
20 68 6F 6C 64 20
64 6F 77 6E 20 41
21
005E 0A 134 .db 0x0A
005F 0A 135 .db 0x0A
0060 00 136 .db 0x00
0061 137 __str_2:
0061 48 6F 6C 64 69 6E 138 .ascii "Holding down A!"
67 20 64 6F 77 6E
20 41 21
0070 0A 139 .db 0x0A
0071 0A 140 .db 0x0A
0072 00 141 .db 0x00
0073 142 __str_3:
0073 54 69 72 65 64 20 143 .ascii "Tired already?"
61 6C 72 65 61 64
79 3F
0081 0A 144 .db 0x0A
0082 0A 145 .db 0x0A
0083 0A 146 .db 0x0A
0084 00 147 .db 0x00
148 .area _CODE
ASxxxx Assembler V01.75 (GameBoy Z80-like CPU), page 1.
Symbol Table
0 ___main_end 003D R
0 ___main_start 0000 R
0 __str_0 003D R
0 __str_1 004B R
0 __str_2 0061 R
0 __str_3 0073 R
0 _main 0000 GR
_printf **** GX
_waitpad **** GX
_waitpadup **** GX
ASxxxx Assembler V01.75 (GameBoy Z80-like CPU), page 2.
Area Table
0 _CODE size 85 flags 0
1 _DATA size 0 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 0 flags 0
7 _GSFINAL size 0 flags 0
8 _HOME size 0 flags 0