summaryrefslogtreecommitdiffstats
path: root/sw/z80/crt0.s
blob: d0ae3cab59bcf708f8794b0992b0d3c285419aef (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
    .area _HEADER (ABS)
    ;; reset vector
    .org 0
    jp init
    
    .org 0x08
    reti
    .org 0x10
    reti
    .org 0x18
    reti
    .org 0x20
    reti
    .org 0x28
    reti
    .org 0x30
    reti
    .org 0x38
    reti

    .org 0x100

init:
    ;; set stack
    ld sp,#0xFFFF

    ;; call C main function
    call _main

.globl _main