|
|||||||||||
|
Technical Support On-Line Manuals A166 User's Guide |
A166 User's GuideOperands and ExpressionsAssembler programs for the C16x/ST10 processor family consist of lines of C16x/ST10 mnemonic instructions. A line can contain only one machine instruction. The general form of all instruction lines is as follows: [label:] mnemonic[Expr.][,Expr.][,Expr.] [; comment] <eol>: For example:
start: MOV DPP2,#PAG D_GROUP ; initialize DPP0
MOV DPP3,#3 ; load System Page
MOV R0,R15
Labels, which are optional, serve two purposes.
The assembler mnemonic determines the operands' number and required type. Some instructions do not require operands, however, some require one, two, or three operands. Different ways operands can be classified are listed below.
Comments can be inserted into the source program. A comment is introduced with a leading semicolon (;). The remainder of the line following the semicolon is ignored, as shown below:
START: CALLS SEG (FARPROC), FARPROC ; comment after instruction
; a pure comment line.
Comments can be used liberally for documenting programs and do not affect the object code. | ||||||||||
|
|||||||||||