[ORG 0]
; We dont know what the segment/offset might be,
jmp 07C0h:start ; so jump to segment 07C0
; The loading message
msg db 'kryptOS 0.01 (Shane rulez!) loading...'
start:
mov ax, cs ; Set ds and es
mov ds, ax
mov es, ax
mov si, msg ; Move the location of msg into si
print: ; Print the message
lodsb
cmp al, 0
je finishedmsg
mov ah, 0Eh
mov bx, 7
int 10h ; Call BIOS
jmp print
finishedmsg:
jmp hang
times 510-($-$$) db 0 ; Fill the rest with zeros
dw 0AA55h ; Last two bytes of boot sector must be