Files
x86-bare-metal-examples/nasm/bios_hello_world.asm

22 lines
329 B
NASM
Raw Permalink Normal View History

; Adapted from: http://blog.ackx.net/asm-hello-world-bootloader.html
org 0x7c00
bits 16
2015-10-05 16:55:48 +02:00
xor ax, ax
mov ds, ax
start:
cli
mov si, msg
mov ah, 0x0e
.loop:
lodsb
or al, al
jz halt
int 0x10
jmp .loop
halt:
hlt
msg:
db "hello world", 0
times 510 - ($-$$) db 0
dw 0xaa55