cfenollosa_os-tutorial/02-bootsector-print/boot_sect_hello.asm

17 lines
261 B
NASM
Raw Normal View History

2014-09-29 09:43:20 +00:00
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