rdos/src/hello.asm

16 lines
245 B
NASM

; COM program displaying hello world string
; This is primarily for testing purposes
org 0x0100
main mov si, str
mov ah, 0x0e
xor bx, bx
main1 lodsb
test al, al
jz main2
int 0x10
jmp main1
main2 ret
str db "Hello world!", 0x0A, 0x0D, 0