Results 1 to 5 of 5

Thread: Loading a program in a boot sector

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    1

    Loading a program in a boot sector

    Hi
    I have a boot sector program that I want to load another program from the disk.

    Since free space on the 512KB Boot sector is limited, I want to go straight to the start of the data part of the disk (ignoring the FAT).

    I want to load this file from disk into memory and then execute it.

    Please note, this is in Real Mode.

    1. How do I set aside some RAM and load it in (I know it's using Int13).

    2. I'm not sure how to execute it, I know I take the CPU to it with a JMP Instruction, but I need some helpful advice.
    Steven Graham

  2. #2
    Member
    Join Date
    Aug 2001
    Posts
    33

    Re: Loading a program in a boot sector

    I don't have a clue

  3. #3
    ChimpFace9000
    Guest

    Re: Re: Loading a program in a boot sector

    Originally posted by VBTZH
    I don't have a clue :(
    Then why did you post?

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    I collected some links:
    http://nondot.org/sabre/os/files/Booting/nasmBoot.html
    http://www.geocities.com/mvea/bootstrap.htm
    http://www.omen.net.au/~philipm/dazi...rial/menu.html

    In this order from least to most advantaged.
    The first seems what you're searching for, the second scans the FAT of the floppy disk and the third seems to be pretty advanced, with much background information. It is incomplete (but bootstraps are explained).
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    BTW I think this is the bootstrap of linux 2.x
    http://www.ibiblio.org/navigator-bin...oot/bootsect.S
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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