Orange's Manual Writing of the Operating System Chapter 1 10-minute complete operating system USB flash drive boot records

Source: Internet
Author: User
Tags manual writing

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.

:






Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.