Skip to content

Instantly share code, notes, and snippets.

@doxyf
Last active August 9, 2022 14:03
Show Gist options
  • Save doxyf/bdc267bbba6c78e38e242f2493f6045a to your computer and use it in GitHub Desktop.
Save doxyf/bdc267bbba6c78e38e242f2493f6045a to your computer and use it in GitHub Desktop.
"Hello, World!" in x86 Assembly
[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