cfenollosa_os-tutorial/02-bootsector-print/boot_sect_hello.asm
2014-09-29 11:43:20 +02:00

17 lines
261 B
NASM

mov ah, 0x0e ; tty mode
mov al, 'H'
int 0x10
mov al, 'e'
int 0x10
mov al, 'l'
int 0x10
int 0x10 ; 'l' is still on al, remember?
mov al, 'o'
int 0x10
jmp $ ; jump to current address = infinite loop
; padding and magic number
times 510 - ($-$$) db 0
dw 0xaa55