Bootloader problem..Not working on real pc..

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
arman08
Posts: 4
Joined: Sun Feb 17, 2008 4:24 am

Bootloader problem..Not working on real pc..

Post 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...
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

Try
PARTCOPY Boot1.bin 0 200 -f0
User avatar
arman08
Posts: 4
Joined: Sun Feb 17, 2008 4:24 am

Post by arman08 »

hey it worked...:lol: thanks a lot dex.. what a silly mistake... :P
Post Reply