Created
February 13, 2025 16:56
-
-
Save v3l0c1r4pt0r/3076106328ab5f32fee752133c690a8d to your computer and use it in GitHub Desktop.
Hello World for legacy BIOS
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
; build with: nasm hello.asm | |
org 7c00h | |
mov ah, 3h | |
mov bh, 0 | |
int 10h | |
mov ax, cs | |
mov es, ax | |
mov cx, hello# | |
mov bh, 0 | |
mov dh, 0 | |
mov dl, 0 | |
mov bp, hello | |
mov bl, 07h | |
mov al, 1 | |
mov ah, 13h | |
int 10h | |
loop: | |
jmp loop | |
hello: | |
db 'Hello, World!' | |
db 0h | |
hello#: equ $-hello |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment