Created
July 12, 2024 23:29
-
-
Save fzn0x/17218a40d58f009d7ecfe1ac6d4e615e to your computer and use it in GitHub Desktop.
Write my first OS - Hello World (part 1) - bootloader.asm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ORG 0x7C00] | |
mov ah, 0x0E | |
mov al, 'H' | |
int 0x10 | |
mov al, 'e' | |
int 0x10 | |
mov al, 'l' | |
int 0x10 | |
mov al, 'l' | |
int 0x10 | |
mov al, 'o' | |
int 0x10 | |
mov al, ',' | |
int 0x10 | |
mov al, ' ' | |
int 0x10 | |
mov al, 'W' | |
int 0x10 | |
mov al, 'o' | |
int 0x10 | |
mov al, 'r' | |
int 0x10 | |
mov al, 'l' | |
int 0x10 | |
mov al, 'd' | |
int 0x10 | |
mov al, '!' | |
int 0x10 | |
jmp $ | |
times 510 - ($-$$) db 0 | |
dw 0xAA55 |
hexdump -C os.img | head -n 20
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Verify the bootloader by identifying
55 aa