Files

101 lines
5.6 KiB
Plaintext
Raw Permalink Normal View History

2023-03-13 08:36:51 +00:00
1 ;--------------------------------------------------------
2 ; File Created by SDCC : free open source ANSI-C Compiler
3 ; Version 3.5.0 #9253 (Jun 20 2015) (MINGW64)
4 ; This file was generated Wed Sep 23 11:29:44 2020
5 ;--------------------------------------------------------
6 .module main
7 .optsdcc -mz80
8
9 ;--------------------------------------------------------
10 ; Public variables in this module
11 ;--------------------------------------------------------
12 .globl _main
13 .globl _foo
14 .globl _lcd_init
15 .globl _lcd_puts
16 .globl _b
17 .globl _a
18 .globl _welcome
19 ;--------------------------------------------------------
20 ; special function registers
21 ;--------------------------------------------------------
0080 22 _Display = 0x0080
0040 23 _Ingresso = 0x0040
24 ;--------------------------------------------------------
25 ; ram data
26 ;--------------------------------------------------------
27 .area _DATA
0000 28 _a::
0000 29 .ds 1
0001 30 _b::
0001 31 .ds 1
32 ;--------------------------------------------------------
33 ; ram data
34 ;--------------------------------------------------------
35 .area _INITIALIZED
36 ;--------------------------------------------------------
37 ; absolute external ram data
38 ;--------------------------------------------------------
39 .area _DABS (ABS)
40 ;--------------------------------------------------------
41 ; global & static initialisations
42 ;--------------------------------------------------------
43 .area _HOME
44 .area _GSINIT
45 .area _GSFINAL
46 .area _GSINIT
47 ;--------------------------------------------------------
48 ; Home
49 ;--------------------------------------------------------
50 .area _HOME
51 .area _HOME
52 ;--------------------------------------------------------
53 ; code
54 ;--------------------------------------------------------
55 .area _CODE
56 ;main.c:15: void foo (void){
57 ; ---------------------------------
58 ; Function foo
59 ; ---------------------------------
0000 60 _foo::
61 ;main.c:16: a++;
0000 21r00r00 [10] 62 ld hl, #_a+0
0003 34 [11] 63 inc (hl)
0004 C9 [10] 64 ret
0005 65 _welcome:
0005 48 65 6C 6C 6F 20 66 .ascii "Hello world!"
77 6F 72 6C 64 21
0011 00 67 .db 0x00
68 ;main.c:19: main() {
69 ; ---------------------------------
70 ; Function main
71 ; ---------------------------------
0012 72 _main::
73 ;main.c:20: a=0;
0012 21r00r00 [10] 74 ld hl,#_a + 0
0015 36 00 [10] 75 ld (hl), #0x00
76 ;main.c:21: b=0;
0017 21r01r00 [10] 77 ld hl,#_b + 0
001A 36 00 [10] 78 ld (hl), #0x00
79 ;main.c:22: lcd_init();
001C CDr00r00 [17] 80 call _lcd_init
81 ;main.c:23: lcd_puts(welcome);
001F 21r05r00 [10] 82 ld hl,#_welcome
0022 E5 [11] 83 push hl
0023 CDr00r00 [17] 84 call _lcd_puts
0026 F1 [10] 85 pop af
86 ;main.c:24: foo();
0027 CDr00r00 [17] 87 call _foo
88 ;main.c:25: while(1) {
002A 89 00102$:
90 ;main.c:26: a++;
002A 21r00r00 [10] 91 ld hl, #_a+0
002D 34 [11] 92 inc (hl)
93 ;main.c:27: b=Ingresso;
002E DB 40 [11] 94 in a,(_Ingresso)
0030 32r01r00 [13] 95 ld (#_b + 0),a
0033 18 F5 [12] 96 jr 00102$
97 .area _CODE
98 .area _INITIALIZER
99 .area _CABS (ABS)