summaryrefslogtreecommitdiffstats
path: root/sw/z80/tests/pio/build/main.lst
blob: 4a1a872be8aa170f5805eac7a51fe2f0adec86db (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
                              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 	.globl _pio_write
                             13 	.globl _pio_set_mode
                             14 ;--------------------------------------------------------
                             15 ; special function registers
                             16 ;--------------------------------------------------------
                             17 ;--------------------------------------------------------
                             18 ; ram data
                             19 ;--------------------------------------------------------
                             20 	.area _DATA
                             21 ;--------------------------------------------------------
                             22 ; ram data
                             23 ;--------------------------------------------------------
                             24 	.area _INITIALIZED
                             25 ;--------------------------------------------------------
                             26 ; absolute external ram data
                             27 ;--------------------------------------------------------
                             28 	.area _DABS (ABS)
                             29 ;--------------------------------------------------------
                             30 ; global & static initialisations
                             31 ;--------------------------------------------------------
                             32 	.area _HOME
                             33 	.area _GSINIT
                             34 	.area _GSFINAL
                             35 	.area _GSINIT
                             36 ;--------------------------------------------------------
                             37 ; Home
                             38 ;--------------------------------------------------------
                             39 	.area _HOME
                             40 	.area _HOME
                             41 ;--------------------------------------------------------
                             42 ; code
                             43 ;--------------------------------------------------------
                             44 	.area _CODE
                             45 ;main.c:3: void main(void)
                             46 ;	---------------------------------
                             47 ; Function main
                             48 ; ---------------------------------
   0000                      49 _main::
                             50 ;main.c:7: pio_set_mode(PIO_A, PIO_MODE_BYTE_OUT, 0);
   0000 AF            [ 4]   51 	xor	a, a
   0001 F5            [11]   52 	push	af
   0002 33            [ 6]   53 	inc	sp
   0003 21 01 00      [10]   54 	ld	hl,#0x0001
   0006 E5            [11]   55 	push	hl
   0007 2E 00         [ 7]   56 	ld	l, #0x00
   0009 E5            [11]   57 	push	hl
   000A CDr00r00      [17]   58 	call	_pio_set_mode
   000D F1            [10]   59 	pop	af
   000E F1            [10]   60 	pop	af
   000F 33            [ 6]   61 	inc	sp
                             62 ;main.c:9: while (1) {
   0010 0E 00         [ 7]   63 	ld	c,#0x00
   0012                      64 00102$:
                             65 ;main.c:10: pio_write(PIO_A, j++);
   0012 41            [ 4]   66 	ld	b,c
   0013 0C            [ 4]   67 	inc	c
   0014 C5            [11]   68 	push	bc
   0015 C5            [11]   69 	push	bc
   0016 33            [ 6]   70 	inc	sp
   0017 21 00 00      [10]   71 	ld	hl,#0x0000
   001A E5            [11]   72 	push	hl
   001B CDr00r00      [17]   73 	call	_pio_write
   001E F1            [10]   74 	pop	af
   001F 33            [ 6]   75 	inc	sp
   0020 C1            [10]   76 	pop	bc
   0021 18 EF         [12]   77 	jr	00102$
                             78 	.area _CODE
                             79 	.area _INITIALIZER
                             80 	.area _CABS (ABS)