|
-
Nov 10th, 2005, 05:52 AM
#1
Thread Starter
Hyperactive Member
Boot sector doesn't starts
Hi, there
I have wrote a bin file which will show message 'test program'
to floppy at boot sector 7c00h.
then i restart and insert that floppy to my computer
I have seen that my computer read my floppy, but nothing happen
I dont know what's wrong???
maybe ....
Code:
.........
mov ah,03h
... sctor, cylinder, blah blah ...
mov bx,offset handle
......
I'm not sure that is it wrote complete bin file to floppy or not.
I think using offset should be correct.
Any idea?
Thanks for advance
-
Nov 10th, 2005, 05:58 AM
#2
Addicted Member
Re: Boot sector doesn't starts
hmmmmm these questions are hard to answer.....especially in these forums. You should really ask them in the FASM forums and the masm forums where the veteran asm gurus tend to be.
I'm only good at general assembly programming. (not with interrupts) and i know a bit about windows programming with asm.
-
Nov 17th, 2005, 04:08 PM
#3
Lively Member
Re: Boot sector doesn't starts
Make sure you write you binary (stripped header) to the first sector of your boot disk... bytes 510 and 511 I think have to have specail HEX bytes written to them for the system to recognize your disk as a boot disk. Location 7c00H i think is the address your boot manager loads the begining of the OS to... hmm.
Master of Cyber Fu - A Temple of Digital Chi
-
Nov 17th, 2005, 08:30 PM
#4
Thread Starter
Hyperactive Member
Re: Boot sector doesn't starts
mmm, I'll try to write them again thanks guys.
-
Nov 18th, 2005, 06:34 AM
#5
Re: Boot sector doesn't starts
Tell me, are you trying to write directly to the floppy? If this is the case, you don't need to. TinyOS shows an example of writing a .COM file into the floppy, and the PC knows to startup from that .COM file. I haven't gone through the TinyOS source code thoroughly, but I think thats all it needs. It might need a small write to the floppy to know to start from the .COM file. If thats the case, its in the TinyOS source.
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Nov 23rd, 2005, 05:13 AM
#6
Addicted Member
Re: Boot sector doesn't starts
http://www.nondot.org/~sabre/os/arti...heBootProcess/
There's a program right at the end to make a boot disk I think - in one of the samples.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|