diff options
author | Nao Pross <naopross@thearcway.org> | 2017-08-26 14:50:06 +0200 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-08-26 14:50:06 +0200 |
commit | 2f3b8ff5cc1948c46859d3ccd73f7e589b6f5d53 (patch) | |
tree | 6888708397c459827bed79d0333f7d5c967c0789 /sw/z80/build/kernel/kernel.asm | |
parent | edit documentation abstract (diff) | |
parent | time to inode (diff) | |
download | z80uPC-2f3b8ff5cc1948c46859d3ccd73f7e589b6f5d53.tar.gz z80uPC-2f3b8ff5cc1948c46859d3ccd73f7e589b6f5d53.zip |
merge remote-tracking branch 'origin/atlas' into naopross
Diffstat (limited to 'sw/z80/build/kernel/kernel.asm')
-rw-r--r-- | sw/z80/build/kernel/kernel.asm | 66 |
1 files changed, 66 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..e0839fc --- /dev/null +++ b/sw/z80/build/kernel/kernel.asm @@ -0,0 +1,66 @@ +;-------------------------------------------------------- +; File Created by SDCC : free open source ANSI-C Compiler +; Version 3.5.0 #9253 (Mar 24 2016) (Linux) +; This file was generated Wed Aug 23 21:44:59 2017 +;-------------------------------------------------------- + .module kernel + .optsdcc -mz80 + +;-------------------------------------------------------- +; Public variables in this module +;-------------------------------------------------------- + .globl _kmain + .globl _usart_init +;-------------------------------------------------------- +; 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 kmain(void) +; --------------------------------- +; Function kmain +; --------------------------------- +_kmain:: +;kernel/kernel.c:6: usart_init(USART_BAUDRATE_9600, USART_PARITY_EVEN, USART_STOP_BITS_1); + ld hl,#0x000A + push hl + ld l, #0x01 + push hl + ld hl,#0x0000 + push hl + ld hl,#0x000C + push hl + call _usart_init + ld hl,#8 + add hl,sp + ld sp,hl + ret + .area _CODE + .area _INITIALIZER + .area _CABS (ABS) |