Skip to content

Instantly share code, notes, and snippets.

@v3l0c1r4pt0r
Created February 13, 2025 16:56
Show Gist options
  • Save v3l0c1r4pt0r/3076106328ab5f32fee752133c690a8d to your computer and use it in GitHub Desktop.
Save v3l0c1r4pt0r/3076106328ab5f32fee752133c690a8d to your computer and use it in GitHub Desktop.
Hello World for legacy BIOS
; 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