assembly language--compiler

Source: Internet
Author: User

An assembly language program from writing out to the final execution of the brief process:
write--〉 compile--〉 connection--〉 execute

1. Write

notepad++ Select assembly

Assume Cs:abc; ABC is used by us as a code snippet, so to associate it with CS ABC segment; Define a segment (ABC), to ends end Start:mov ax,2; Give the program a starting position add ax,ax; Write the assembly instruction in this code snippet (this segment is the code snippet we defined) add Ax,axmov ax,4c00h; These two assembly instructions are the program return (under DOS, a program P2 want to run, it must have a running program P1 will P2 from the executable file loaded into memory, and then give control of the CPU to P2,P2 to run. P2 run time P1 stop running. When the P2 is finished running, the control of the CPU will be returned to the program that it can run P1, and then P1 continue to run) int 21H; We don't need to know these two sentences for the time being, as long as we know that the function of the program is to return (the control of the CPU back to the program that makes it run) ABC ends; Code snippet end EndStart; Indicate where the program ended

  

assembly language--compiler

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.