478
CHAPTER 24 INSTRUCTION SET
24.1 Legend
24.1.1 Operand representation and formats
In the operand field of each instruction, an operand is written according to the format for operand representation
of that instruction (for details, refer to the assembler specifications). Some operands may be written in two or more
formats. In this case, select one of them. Uppercase characters, #, !, $, and [ ] are keywords and must be written
as is. The meanings of the symbols are as follows:
# : immediate data
!
: absolute address
$ : relative address
[ ] : indirect address
To write immediate data, also use an appropriate numeric value or label. To write a label, be sure to use #, !, $,
or [ ].
Register formats r or rp for an operand can be written as a function name (such as X, A, or C) or absolute name
(the name in parentheses in the table below, such as R0, R1, or R2).
Table 24-1. Operand Representation and Formats
Representation
Format
r
rp
sfr
sfrp
X (R0), A (R1), C (R2), B (R3), E (R4), D (R5), L (R6), H (R7),
AX (RP0), BC (RP1), DE (RP2), HL (RP3)
Special function register symbol
Note
Special function register symbol (only even address of register that can be manipulated in
16-bit units)
Note
saddr
saddrp
FE20H-FF1FH immediate data or label
FE20H-FF1FH immediate data or label (even address only)
addr16
0000H-FFFFH immediate data or label
(even address only for 16-bit data transfer instruction)
0800H-0FFFH immediate data or label
0040H-007FH immediate data or label (even address only)
addr11
addr5
word
byte
bit
16-bit immediate data or label
8-bit immediate data or label
3-bit immediate data or label
RBn
RB0-RB3
Note
FFD0H-FFDFH cannot be addressed.
Remark
For the symbols of the special function registers, refer to
Table 5-7. Special Function Register List
.