Bugs on bootloader
Posted: Sat Jun 26, 2004 7:02 am
Hello. I have programmed my simple bootloader that boots from floppy and writes me "Hello, World!". The source:
But it writes me not that text, but some strange symbols that lenght is about 2 lines. What I have to do to fix that bug?
Code: Select all
[BITS 16]
[ORG 0x7C00]
start:
mov si, msg
call Print
msg db "Hello, World!"
Print:
mov ah,0x0E
mov bh,0x00
.NextChar:
lodsb
or al,al
jz .return
int 0x10
jmp .NextChar
.return:
ret
times 510-($-$$) db 0
dw 0xAA55