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