Advertisement

OS

Started by May 08, 2001 04:45 PM
-1 comments, last by wingman20 23 years, 9 months ago
hi, i''m begining to write an OS. The first thing that i''m doing is the bootloader. I guess that it needs to load a program (ussually command.com) from the disk and then execute it. To do this (correct me if i''m wrong), you need to find that file name in the FAT table and then use the INT 13h (ah=2) to read the sectors that contain the progam into memory, set the CS to the address of the beging of the program. Then set the DS, SS and ES to some empty slots in memoryand then set SP to some other memory location for the stack and finnaly execute it by setting IP to the location of the first command in command.com. My question is how do i find the disk sector that a specific file beggins in and how many sectors it is long. (and do please correct me if any of the above is incorect). thanks

This topic is closed to new replies.

Advertisement