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)