hello world

This commit is contained in:
andromeda
2026-02-28 23:36:48 +01:00
parent e98380107b
commit 8dee59b744

View File

@@ -1,7 +1,28 @@
; yoinked from osdev.org ; yoinked from osdev.org
mov ax, 0x07C0
mov ds, ax
mov si, msg
cld
ch_loop:
lodsb
; hang if at null terminator
or al, al
jz hang
; BIOS interrupt prints al
mov ah, 0x0E
mov bh, 0
int 0x10
jmp ch_loop
hang: hang:
jmp hang jmp hang
msg db 'Hello World', 0
times 510-($-$$) db 0 ; 2 bytes less now times 510-($-$$) db 0 ; 2 bytes less now
db 0x55 db 0x55
db 0xAA db 0xAA