Originale-mail to me for new edition

 

Assembler statement syntax

 

This syntax of an assembler statement is

Label: Prefix Opcode Operand1, Operand2

where Label is a label, Prefix is an assembler prefix opcode (operation code), Opcode is an assembler instruction opcode or directive, and Operand is an assembler expression. Label and Prefix are optional. Some opcodes take only one operand, and some take none.

Comments are allowed between assembler statements, but not within them. For example,

MOV AX,1 {Initial value}     { OK }

MOV CX,100 {Count}           { OK }

MOV {Initial value} AX,1;    { Error! }

MOV CX, {Count} 100          { Error! }

 

Labels

Instruction opcodes

Assembler directives

Operands

 

Topic groups

 

See also

Inline assembler code: Overview

The asm statement

 

 

译文

 

汇编程序语句语法

 

汇编程序语句语法是

Label: Prefix Opcode Operand1, Operand2

这里的Label是一个标号, Prefix是一个汇编操作码前缀,Opcode是一个汇编指令操作码或指示,Operand是一个汇编表达式。LabelPrefix是可选的。一些操作码仅接受一个操作数,一些甚至不接受操作数。

在汇编语句之间允许有注释,但不是在汇编语句内部。例如,

MOV AX,1 {Initial value}     { 正确 }

MOV CX,100 {Count}           { 正确 }

MOV {Initial value} AX,1;    { 错误!}

MOV CX, {Count} 100          { 错误!}

标号

指令操作码

汇编指示

操作数

 

主题组

 

相关主题

内嵌汇编程序代码:概述

asm语句