Hardware Spec From BIOS OR RAM

2»

Comments

  • Other question is that how can i put the binary code of the kernel in sector 1.because after compile i think the file is more than 512 byte.

    What should i do?
  • : Other question is that how can i put the binary code of the kernel
    : in sector 1

    Don't. That code would crash at the very first instruction in a bootloader do to the org 0x100. (It should be 0x7c00, where the Bios loads sector 0 to) Not doing so causes a jump to an incorrect location in memory.

    In either case, there are alot of other problems with the code that wont work for bootloaders (int 0x21 does not exist, for example)

    (This is what it sounds like you are wanting to do, anyways.)

    That code is for DOS--Not bootable.
    [hr][size=1][leftbr].:EvolutionEngine[rightbr][leftbr].:MicroOS Operating System[rightbr][leftbr][link=http://www.brokenthorn.com]Website :: OS Development Series[rightbr][/link][/size]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories