mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-08 22:48:06 +11:00
1ae2331763
For now, only a dummy app, but it's emulated properly with libz80. Exciting times!
14 lines
186 B
NASM
14 lines
186 B
NASM
; setup the stack
|
|
ld hl, 0xffff
|
|
ld sp, hl
|
|
; zasm input
|
|
ld hl, 0x9000
|
|
; zasm output
|
|
ld hl, 0xc000
|
|
call zasm
|
|
; signal the emulator we're done
|
|
out (0), a
|
|
halt
|
|
zasm:
|
|
; beginning of the code
|