summaryrefslogtreecommitdiffstats
path: root/sw/z80/loader.asm
blob: 85f5abe669e6238e40f1072493472fc687bd7f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; C crt0 loader
;
    module crt0

; general scope declarations
    extern _main    ; C code

; startup code
    org 0000h ; reset vector
    jp _start

_start:
    ld sp, 0xffff
    call _main
    jp _exit

_exit:
    ret