12345678910111213141516171819202122 |
- ; Adapted from: http://blog.ackx.net/asm-hello-world-bootloader.html
- org 0x7c00
- bits 16
- 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
|