Value assignment directives
Syntax
label = expr
label ASSIGN expr
label DEFINE const_expr
label EQU expr
label SET expr
label VAR expr
Parameters
| Constant value assigned to symbol. |
| Value assigned to symbol or value to be tested. |
| Symbol to be defined. |
Operand modifiers
These prefixes can be used to modify operands:
Prefix | Usage | Description |
|---|---|---|
no prefix | source/destination | The assembler uses SFR or 16-bit (near) addressing |
| source/destination | Forces the assembler to use short addressing (saddr) |
| source/destination | Forces the assembler to use 16-bit (near) addressing |
| source/destination | Forces the assembler to use |
| branch | Forces the assembler to use 8-bit relative addressing |
no prefix, | branch | The assembler uses 16-bit relative addressing |
| branch | Forces the assembler to use 16-bit absolute addressing |
| branch | Forces the assembler to use 20-bit absolute addressing |
| call | Forces the assembler to use 16-bit relative addressing |
no prefix, | call | The assembler uses 16-bit absolute addressing |
| call | Forces the assembler to use 20-bit absolute addressing |
Description
These directives are used for assigning values to symbols:
Directive | Description |
|---|---|
Assigns a permanent value local to a module. | |
Assigns a temporary value. | |
Defines a file-wide value. |