Page 1 of 1

Bootloader problem..Not working on real pc..

Posted: Sun Feb 17, 2008 4:39 am
by arman08
hello friends,, i am new here.. and i am very eager to learn about OS development.. After reading many tutorials i started with bootloader.... and i performed following steps..



;*******************************************
[BITS 16]
[ORG 0x7C00]

mov ah, 0Eh
mov al, 'H'
mov bh, 0Eh
mov bl, 0
int 10h

mov ah, 0Eh
mov al, 'i'
mov bh, 0Eh
mov bl, 0
int 10h

hang:
jmp hang

times 510-($-$$) db 0

dw 0AA55h

;**************************************

After compiling and creating .bin file, i tested it on Bochs, and it works fine... but i tried to write it on floppy using partcopy

PARTCOPY Boot1.bin 0 3 -f0 0
PARTCOPY Boot1.bin 3E 1C2 -f0 3E

After booting frm floppy, pc just hangs and doesnt show any message...
plz help me wheres the mistake......

thanks in advance...

Posted: Sun Feb 17, 2008 7:27 am
by Dex
Try
PARTCOPY Boot1.bin 0 200 -f0

Posted: Sun Feb 17, 2008 7:38 am
by arman08
hey it worked...:lol: thanks a lot dex.. what a silly mistake... :P