MATERIALS:
1 NASM: Compile the Assembly source code, which is available in many places on the Internet
2 winhex: As a Windows system to write U disk tools, need to be genuine (full version) to have write permissions, recommended: http://down.liangchan.net/WinHex_16.7.rar
Steps:
1. Compile the machine code of the boot program. Compile the Assembly source code with the command line: Name boot. ASM-O boot. bin. the boot. binfile is generated in the current directory of the command line.
2. Write the boot program to the first byte (after) of the first sector of the boot disk, that is, the primary boot area. Plug in to the U disk, and use the Administrator's permission to open winhex.exe. Tool-> open disk select the currently inserted U disk under physical media. OK. File-> open boot. Bin. Select all the hexadecimal numbers of boot. Bin and copy them. Return to the tab of the previously opened USB flash drive, select the first hexadecimal number, edit-> clipboard-> write, and the pop-up will be written at offset 0. OK. (Note: This write method will destroy the original content in the USB flash drive, so it is best to format the USB flash drive in advance ). Click the Save icon to bring up some other warning boxes. Click OK.
3. Set the computer BIOS boot to start from USB first and restart the computer.
: