Last active
August 9, 2022 14:03
-
-
Save doxyf/bdc267bbba6c78e38e242f2493f6045a to your computer and use it in GitHub Desktop.
"Hello, World!" in x86 Assembly
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 bx, helloWorld | |
print: | |
mov al, [bx] | |
cmp al, 0 | |
je end | |
int 0x10 | |
inc bx | |
jmp print | |
end: | |
jmp $ | |
helloWorld: | |
db "Hello, World!", 0 | |
times 510-($-$$) db 0 | |
dw 0xaa55 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment