COM files are similar to binfiles.

Source: Internet
Author: User

I think the COM file only has one more tag than the binfile: org 0100 H, telling you that this file is dedicated to dos.

Both are executableProgramMemory image file: the so-called image, that is, to load the binfile or com file on the hard disk back into the memory, and then set the Cs: IP point to the First Command of the file, the CPU can run smoothly.

 

They only have the basic elements of the program: commands and data.
When dos executes the COM file, it will first create a byte PSP memory space (used to communicate with the com Program), four segment registers all point to PSP, and then load the COM file to CS: 100h. DOS uses Cs: H as the program entry.
The binfile is used only during system boot. It seems to be more underlying.
Related Articles Article, Text is very accurate: http://blog.sina.com.cn/s/blog_7321b86701011uxa.html

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.