lesson 1: the boot sector
when the computer boots from a floppy, bios (basic input/output system) reads the disk and loads the first sector into memory at address 0000:7c00. this first sector is called the dos boot record (dbr). bios jumps to the address 0x7c00 and begins executing instructions there. it is these instructions (the “boot loader”) that will load the operating system (os) into memory and begin the os’s boot process. 【程序编程相关:[shell] 常用的正则表达式】 in this lesson we’ll learn about the contents of the boot sector so that we can learn to write our own boot program. 【推荐阅读:软raid 方法】 at a dos (or windows) command prompt type debug. this will leave you with just a hyphen as a prompt. if you enter letter ‘d’ as a command and press enter, it will show you a portion of the contents of ram. typing the question mark as a command will give you a list of all the available commands in debug. (be very careful when using the debug utility. this utility can be used to overwrite data on any disk drive, possibly causing loss of data.) 【扩展信息:How to send mail wit】 the first thing to do is to take a look inside the boot record. the dos utility debug is a widely available tool that can be used to view the contents of memory and disks. we’ll use debug to look at a floppy disk’s boot record. place a freshly formatted disk in the a: drive. to load the boot record off your floppy disk, type the following command. -l 0 0 0 1... 下一页