mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-27 06:28:05 +11:00
2e8af376e3
The pgm module implements a shell hook so that when an unknown command is typed, we look into the mounted filesystem and look for a file with the same name as the command. If we find one, we load it in memory and run it.
13 lines
152 B
NASM
13 lines
152 B
NASM
; prints "Hello!" on screen
|
|
.equ printstr 0x03
|
|
|
|
.org 0x9000
|
|
|
|
ld hl, sHello
|
|
call printstr
|
|
xor a ; success
|
|
ret
|
|
|
|
sHello:
|
|
.db "Hello!", 0x0d, 0x0a, 0
|