Results 1 to 6 of 6

Thread: Boot sector doesn't starts

  1. #1

    Thread Starter
    Hyperactive Member naruponk's Avatar
    Join Date
    Feb 2004
    Location
    Some where in the world
    Posts
    423

    Exclamation 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

  2. #2
    Addicted Member
    Join Date
    Aug 2005
    Location
    York
    Posts
    197

    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.

  3. #3
    Lively Member Brandito's Avatar
    Join Date
    Nov 2000
    Location
    Here, There, Every Where!
    Posts
    106

    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

  4. #4

    Thread Starter
    Hyperactive Member naruponk's Avatar
    Join Date
    Feb 2004
    Location
    Some where in the world
    Posts
    423

    Re: Boot sector doesn't starts

    mmm, I'll try to write them again thanks guys.

  5. #5
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    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

  6. #6
    Addicted Member
    Join Date
    Aug 2005
    Location
    York
    Posts
    197

    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
  •  



Click Here to Expand Forum to Full Width