blob: 17142d4592d28795888141c66ac08671ad3f78c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
1 ;--------------------------------------------------------
2 ; File Created by SDCC : free open source ANSI-C Compiler
3 ; Version 3.6.0 #9615 (Linux)
4 ;--------------------------------------------------------
5 .module main
6 .optsdcc -mz80
7
8 ;--------------------------------------------------------
9 ; Public variables in this module
10 ;--------------------------------------------------------
11 .globl _main
12 ;--------------------------------------------------------
13 ; special function registers
14 ;--------------------------------------------------------
15 ;--------------------------------------------------------
16 ; ram data
17 ;--------------------------------------------------------
18 .area _DATA
19 ;--------------------------------------------------------
20 ; ram data
21 ;--------------------------------------------------------
22 .area _INITIALIZED
23 ;--------------------------------------------------------
24 ; absolute external ram data
25 ;--------------------------------------------------------
26 .area _DABS (ABS)
27 ;--------------------------------------------------------
28 ; global & static initialisations
29 ;--------------------------------------------------------
30 .area _HOME
31 .area _GSINIT
32 .area _GSFINAL
33 .area _GSINIT
34 ;--------------------------------------------------------
35 ; Home
36 ;--------------------------------------------------------
37 .area _HOME
38 .area _HOME
39 ;--------------------------------------------------------
40 ; code
41 ;--------------------------------------------------------
42 .area _CODE
43 ;main.c:2: void main(void)
44 ; ---------------------------------
45 ; Function main
46 ; ---------------------------------
0000 47 _main::
48 ;main.c:10: while (1) {
0000 0E 00 [ 7] 49 ld c,#0x00
0002 50 00102$:
51 ;main.c:11: *mem = j++;
0002 41 [ 4] 52 ld b,c
0003 0C [ 4] 53 inc c
0004 21 00 82 [10] 54 ld hl,#0x8200
0007 70 [ 7] 55 ld (hl),b
0008 18 F8 [12] 56 jr 00102$
57 .area _CODE
58 .area _INITIALIZER
59 .area _CABS (ABS)
|