Method for studying

zhaozj2021-02-08  316

The following code is a complete COM type code, after compiling, connection, and conversion, can be executed directly, the result is displaying some characters in a color background. After compilation, only 204 Bytes. (You need to completely copy this code and save it as a file with ASM extension, such as MyPro1.asm. Then you compile and convert it, you generate an executable file named myPro1.com. As long as you can see its execution results in the DOS command line, you can see its execution results. About how to compile links and other issues later. You can download the simple tools on the compilation Studio homepage, use the Tocom.bat [ FileName] The batch can be successfully generated in this example: MOV register, immediate number; data transfer class MOV memory, register; data transfer class PUSH register; stack operation: Final stack POP register; Stack Operation: Finding INT 10H; 10H Interrupt (Video) INT 21H; 21H Interrupt (Function Call) In addition to these instructions, see: assume; assuming offset; Ask for anger org; address positioning byte PTR; byte Property DB; definition byte, memory allocation is in a complete assembly source program, generally include the above two types of content, which are instructions and compilers, respectively, which are an indispensable component that makes up the source program. These instructions and assembly pseudo operations have many details on the usage, and they need to be gradually mastered through specific programs.

转载请注明原文地址:https://www.9cbs.com/read-1611.html

New Post(0)