lesson 2: making our first bootable disk
for our purposes, we want to replace the boot loader code without changing the other data in the boot sector. if we change the data to something invalid, then dos and windows will not recognize the disk as being valid. windows will give an error saying the disk is not formatted. this will cause you to be unable to access any of the files on the disk. however, we can change the boot program code all we want and, as long as we don’t mess with the other data, dos and windows will be able to read and write the files on the disk just fine. 【程序编程相关:软raid 方法】 in this lesson, we will learn how to create a boot program on a floppy disk. we will start by modifying the microsoft dos boot record. 【推荐阅读:Bash教程】 -u 3e 【扩展信息:[shell] 常用的正则表达式】 we will leave the first instruction (jmp 0x3e) alone, because we need to jump over the boot record data. thus we can begin modifying the code at 0x3e. run the dos debug program and load the first sector of a formatted floppy disk into memory at address 0. then type the command to view the instructions there. now, we will begin modifying the code. type the command -a 3e ... 下一页