Bochs is still very easy to use, time research research

xiaoxiao2021-03-05  25

Inadvertently connected to the pure C forum, the OS trial here is very hot, there are several experimental OS that are developing. The forum is full of learning enthusiasm, as if one night, all people write the operating system. Google I have found that I found more OS projects on the Internet. But I think, to learn OS, see the source code of the Linux early kernel is enough to master the direction.

What is the first step in the operating system .. What is the first step in writing OS, write an OS loader. There are many examples on the Internet. LINUX0.11 Bootsect.s is also .Loader requirements are 512 bytes, last Two bytes are 0xAA, 0x55, the entire file is a pure binary code, that is, there cannot be executable file headers, such as the exe of the PE format.

It is also quiz, I have used the source code from the Internet to compile the bin file with NASM. Specify the floppy disk under VMware, and the eyes are excited to wait for one moment, no reaction. Just try to try all the days these days The machine, Bochs is next to it. Specify bin as a floppy disk, start, OK.

Bochs is still quite strong, it is relatively low, it is definitely unbearable in life with it. But it is used to simulate some lightweight OS is quite cool. For example, I use it to simulate a DOS6. 22. Test the example of the protection model on the black papers inside, and some legendary DOS viruses :) OS Developer will probably like

转载请注明原文地址:https://www.9cbs.com/read-39019.html

New Post(0)