Results 1 to 2 of 2

Thread: bootstrap

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Location
    US
    Posts
    1

    bootstrap

    Hi
    Sorry on my bad english !

    I have COMPAQ Quick Restore CD.. This CD is for reinstalling operating system on computer if something goes wrong or u just want to reformat ur hdd..
    Actually when u put this cd in ur cd rom drive, and reboot computer, it boot from this cd instead from ur hdd..

    I know its bootstrap that is on CD, and maybe its made in assembly. What I dont understand actually is how this thing work ?

    When u boot from this CD , u can see some blue screen, and informations, etc etc.. and this thing work without any operating system..

    So, is it just regular EXE file on cd that is booted from botstrap, or the whole thing is made in asm ?

    Actually my question is, how can I make something like that on normal floppy.. I read a lot of bootstrap tutorials, but all of them just hang computer and thats it.. So I cant figure out how to connect this bootstrap with a program that for example I made in plain C.. ( i found on this forum example in C that dosent need any operating system.. it show simpple "Hello World" on the screen, but author says that u dont need any operating system for that"..

    I guess if I compile this thing in exe with C compiler, how can it work without perating system.. but how can I actually connect that thing from bootstrap that I made in asm..?

    Huh, i think that I can understand myself now ;-)


    I create simple bootstrap in ASM >> I create simple Hello world app in C that dosent require any operating system = how to connect these two things so I can boot that from floppy ?

    thanx
    **

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    The bootstrap must be capable of loading a file from the disk (see www.geocities.com/mvea/bootstrap.htm for a bootstrap that can do this) and executing this file. In order for the file to be easy enough so that a bootstrap can read it, it must be plain binary (usually .bin or .com).
    Your C compiler must be capable of creating plain binary 16-bit code files, since the bootstrap I showed you doesn't switch to 32-bit mode (it is already 510 bytes long, the absolute maximum possible).
    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