
Assembly Instructions
The syntax of an instruction has the following form:
[
name
:]
mnemonic
[
operand1
[,
operand2
]] [;
comment
]
where
name
:
®
label name
mnemonic
®
instruction name (keywords)
operand1
®
registers
memory address
operand2
®
registers
memory address
immediate value
Name
A name is made up of letters, digits, and special characters, and is used as a label.
Mnemonic
Mnemonic is an instruction name dependent upon the type of the MCU used in the source pro-
gram.
Operand, Operator and Expression
Operands (source or destination) are the argument defining values that are to be acted on by in-
structions. They can be constants, variables, registers, expressions or keywords. When using the
instruction statements, care must be taken to select the correct operand type, i.e. source operand
or destination operand. The dollar sign $ is a special operand, namely, the current location oper-
and.
An expression consists of many operands that are combined to describe a value or a memory loca-
tion. The combined operators are evaluated at assembly time. They can contain constants, sym-
bols, or any combination of constants and symbols that are separated by arithmetic operators.
Operators specify the operations to be performed while combining the operands of an expression.
The Cross Assembler provides many operators to combine and evaluate operands. Some opera-
tors work with integer constants, some with memory values, and some with both. Operators han-
dle the calculation of constant values that are known at the assembly time. The following are some
operators provided by the Cross Assembler.
·
Arithmetic ope - * / % (MOD)
·
SHL and SHR operators
-
Syntax
expression
SHR
c
ount
expression
SHL
count
76
Cost-Effective I/O Type MCU
Содержание HT48R05A-1
Страница 7: ...vi Cost Effective I O Type MCU...
Страница 8: ...P a r t I Microcontroller Profile Part I Microcontroller Profile 1...
Страница 9: ...2 Cost Effective I O Type MCU...
Страница 52: ...P a r t I I Programming Language Part II Programming Language 45...
Страница 53: ...46 Cost Effective I O Type MCU...
Страница 59: ...52 Cost Effective I O Type MCU...
Страница 90: ...P a r t I I I Development Tools Part III Development Tools 83...
Страница 91: ...84 Cost Effective I O Type MCU...
Страница 101: ...94 Cost Effective I O Type MCU...
Страница 104: ...Appendix Appendix 97...
Страница 105: ...98 Cost Effective I O Type MCU...
Страница 115: ...108 Cost Effective I O Type MCU...
Страница 116: ...A p p e n d i x B Package Information Appendix B Package Information 109 B...
Страница 123: ...116 Cost Effective I O Type MCU...
Страница 125: ...Amendments...