diff options
| author | andromeda <andromeda@lenovo> | 2026-02-28 23:36:48 +0100 |
|---|---|---|
| committer | andromeda <andromeda@lenovo> | 2026-02-28 23:36:48 +0100 |
| commit | 8dee59b744bfa88bb4f946fa773a64ae7ac1e181 (patch) | |
| tree | 95994d49ff20bbe745936dfa426c21cf2f0ae3ea /boot.asm | |
| parent | e98380107bb353931c6bd55969b614b9d6592de8 (diff) | |
hello world
Diffstat (limited to 'boot.asm')
| -rw-r--r-- | boot.asm | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -1,7 +1,28 @@ ; 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: jmp hang +msg db 'Hello World', 0 + times 510-($-$$) db 0 ; 2 bytes less now db 0x55 db 0xAA |
