29 lines
280 B
NASM
29 lines
280 B
NASM
|
|
bits 16
|
|
|
|
org 0xac00
|
|
|
|
mov ax, 0xb800
|
|
mov es, ax
|
|
xor ax, ax
|
|
mov ds, ax
|
|
mov si, msg
|
|
xor di, di
|
|
|
|
msg_loop:
|
|
lodsb
|
|
or al, al
|
|
jz msg_done
|
|
stosb
|
|
mov al, 15
|
|
stosb
|
|
jmp msg_loop
|
|
|
|
msg_done:
|
|
|
|
jmp $
|
|
|
|
msg:
|
|
db "This kernel is located at 0x100000!", 0
|
|
|