mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2025-12-17 20:34:36 +03:00
bootsector print hello
This commit is contained in:
16
02-bootsector-print/boot_sect_hello.asm
Normal file
16
02-bootsector-print/boot_sect_hello.asm
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user