diff options
Diffstat (limited to '')
-rw-r--r-- | sw/z80/build/kernel/kernel.asm | 65 | ||||
-rw-r--r-- | sw/z80/build/kernel/kernel.lst | 65 | ||||
-rw-r--r-- | sw/z80/build/kernel/kernel.rel | 23 | ||||
-rw-r--r-- | sw/z80/build/kernel/kernel.sym | 27 |
4 files changed, 180 insertions, 0 deletions
diff --git a/sw/z80/build/kernel/kernel.asm b/sw/z80/build/kernel/kernel.asm new file mode 100644 index 0000000..a29db4d --- /dev/null +++ b/sw/z80/build/kernel/kernel.asm @@ -0,0 +1,65 @@ +;-------------------------------------------------------- +; File Created by SDCC : free open source ANSI-C Compiler +; Version 3.5.0 #9253 (Mar 24 2016) (Linux) +; This file was generated Tue May 2 18:13:35 2017 +;-------------------------------------------------------- + .module kernel + .optsdcc -mz80 + +;-------------------------------------------------------- +; Public variables in this module +;-------------------------------------------------------- + .globl _main +;-------------------------------------------------------- +; special function registers +;-------------------------------------------------------- +;-------------------------------------------------------- +; ram data +;-------------------------------------------------------- + .area _DATA +;-------------------------------------------------------- +; ram data +;-------------------------------------------------------- + .area _INITIALIZED +;-------------------------------------------------------- +; absolute external ram data +;-------------------------------------------------------- + .area _DABS (ABS) +;-------------------------------------------------------- +; global & static initialisations +;-------------------------------------------------------- + .area _HOME + .area _GSINIT + .area _GSFINAL + .area _GSINIT +;-------------------------------------------------------- +; Home +;-------------------------------------------------------- + .area _HOME + .area _HOME +;-------------------------------------------------------- +; code +;-------------------------------------------------------- + .area _CODE +;kernel/kernel.c:4: void main(void) +; --------------------------------- +; Function main +; --------------------------------- +_main:: +;kernel/kernel.c:7: for (i = 0; i < 10; i++) { + ld de,#0x000A +00104$: +;kernel/kernel.c:8: j--; + ld c,e + ld b,d + dec bc + ld e, c +;kernel/kernel.c:7: for (i = 0; i < 10; i++) { + ld a,b + ld d,a + or a,c + jr NZ,00104$ + ret + .area _CODE + .area _INITIALIZER + .area _CABS (ABS) diff --git a/sw/z80/build/kernel/kernel.lst b/sw/z80/build/kernel/kernel.lst new file mode 100644 index 0000000..8ec7438 --- /dev/null +++ b/sw/z80/build/kernel/kernel.lst @@ -0,0 +1,65 @@ + 1 ;-------------------------------------------------------- + 2 ; File Created by SDCC : free open source ANSI-C Compiler + 3 ; Version 3.5.0 #9253 (Mar 24 2016) (Linux) + 4 ; This file was generated Tue May 2 18:13:35 2017 + 5 ;-------------------------------------------------------- + 6 .module kernel + 7 .optsdcc -mz80 + 8 + 9 ;-------------------------------------------------------- + 10 ; Public variables in this module + 11 ;-------------------------------------------------------- + 12 .globl _main + 13 ;-------------------------------------------------------- + 14 ; special function registers + 15 ;-------------------------------------------------------- + 16 ;-------------------------------------------------------- + 17 ; ram data + 18 ;-------------------------------------------------------- + 19 .area _DATA + 20 ;-------------------------------------------------------- + 21 ; ram data + 22 ;-------------------------------------------------------- + 23 .area _INITIALIZED + 24 ;-------------------------------------------------------- + 25 ; absolute external ram data + 26 ;-------------------------------------------------------- + 27 .area _DABS (ABS) + 28 ;-------------------------------------------------------- + 29 ; global & static initialisations + 30 ;-------------------------------------------------------- + 31 .area _HOME + 32 .area _GSINIT + 33 .area _GSFINAL + 34 .area _GSINIT + 35 ;-------------------------------------------------------- + 36 ; Home + 37 ;-------------------------------------------------------- + 38 .area _HOME + 39 .area _HOME + 40 ;-------------------------------------------------------- + 41 ; code + 42 ;-------------------------------------------------------- + 43 .area _CODE + 44 ;kernel/kernel.c:4: void main(void) + 45 ; --------------------------------- + 46 ; Function main + 47 ; --------------------------------- + 0000 48 _main:: + 49 ;kernel/kernel.c:7: for (i = 0; i < 10; i++) { + 0000 11 0A 00 [10] 50 ld de,#0x000A + 0003 51 00104$: + 52 ;kernel/kernel.c:8: j--; + 0003 4B [ 4] 53 ld c,e + 0004 42 [ 4] 54 ld b,d + 0005 0B [ 6] 55 dec bc + 0006 59 [ 4] 56 ld e, c + 57 ;kernel/kernel.c:7: for (i = 0; i < 10; i++) { + 0007 78 [ 4] 58 ld a,b + 0008 57 [ 4] 59 ld d,a + 0009 B1 [ 4] 60 or a,c + 000A 20 F7 [12] 61 jr NZ,00104$ + 000C C9 [10] 62 ret + 63 .area _CODE + 64 .area _INITIALIZER + 65 .area _CABS (ABS) diff --git a/sw/z80/build/kernel/kernel.rel b/sw/z80/build/kernel/kernel.rel new file mode 100644 index 0000000..1079edc --- /dev/null +++ b/sw/z80/build/kernel/kernel.rel @@ -0,0 +1,23 @@ +XL2 +H 9 areas 2 global symbols +M kernel +O -mz80 +S .__.ABS. Def0000 +A _CODE size D flags 0 addr 0 +S _main Def0000 +A _DATA size 0 flags 0 addr 0 +A _INITIALIZED size 0 flags 0 addr 0 +A _DABS size 0 flags 8 addr 0 +A _HOME size 0 flags 0 addr 0 +A _GSINIT size 0 flags 0 addr 0 +A _GSFINAL size 0 flags 0 addr 0 +A _INITIALIZER size 0 flags 0 addr 0 +A _CABS size 0 flags 8 addr 0 +T 00 00 +R 00 00 00 00 +T 00 00 11 0A 00 +R 00 00 00 00 +T 03 00 +R 00 00 00 00 +T 03 00 4B 42 0B 59 78 57 B1 20 F7 C9 +R 00 00 00 00 diff --git a/sw/z80/build/kernel/kernel.sym b/sw/z80/build/kernel/kernel.sym new file mode 100644 index 0000000..d01735c --- /dev/null +++ b/sw/z80/build/kernel/kernel.sym @@ -0,0 +1,27 @@ +ASxxxx Assembler V02.00 + NoICE + SDCC mods (Zilog Z80 / Hitachi HD64180), page 1. +Hexadecimal [16-Bits] + +Symbol Table + + .__.$$$. = 2710 L + .__.ABS. = 0000 G + .__.CPU. = 0000 L + .__.H$L. = 0000 L + 0 _main 0000 GR + + +ASxxxx Assembler V02.00 + NoICE + SDCC mods (Zilog Z80 / Hitachi HD64180), page 2. +Hexadecimal [16-Bits] + +Area Table + + 0 _CODE size D flags 0 + 1 _DATA size 0 flags 0 + 2 _INITIALIZED size 0 flags 0 + 3 _DABS size 0 flags 8 + 4 _HOME size 0 flags 0 + 5 _GSINIT size 0 flags 0 + 6 _GSFINAL size 0 flags 0 + 7 _INITIALIZER size 0 flags 0 + 8 _CABS size 0 flags 8 + |