Chapter 4 instruction set, 1 operation, 1 operand identifiers and description methods – NEC 78K/0 Series User Manual

Page 32

Advertising
background image

32

User's Manual U12326EJ4V0UM

CHAPTER 4 INSTRUCTION SET

This chapter lists the instructions in the 78K/0 Series instruction set. The instructions are common to all

78K/0 Series products.

4.1 Operation

For the operation list for each product, refer to the user’s manual of each product.

4.1.1 Operand identifiers and description methods

Operands are described in the “Operand” column of each instruction in accordance with the description method

of the instruction operand identifier (refer to the assembler specifications for details). When there are two or more

description methods, select one of them. Alphabetic letters in capitals and the symbols, #, !, $ and [ ] are key

words and are described as they are. Each symbol has the following meaning.

#: Immediate data specification

!:

Absolute address specification

$: Relative address specification

[ ]: Indirect address specification

In the case of immediate data, describe an appropriate numeric value or a label. When using a label, be sure

to describe the #, !, $ and [ ] symbols.

For operand register identifiers, r and rp, either function names (X, A, C, etc.) or absolute names (names in

parentheses in the table below, R0, R1, R2, etc.) can be used for description.

Table 4-1. Operand Identifiers and Description Methods

Identifier

Description Method

r

X (R0), A (R1), C (R2), B (R3), E (R4), D (R5), L (R6), H (R7)

rp

AX (RP0), BC (RP1), DE (RP2), HL (RP3)

sfr

Special-function register symbol

Note

sfrp

Special-function register symbols (16-bit manipulatable register even addresses only)

Note

saddr

FE20H to FF1FH Immediate data or labels

saddrp

FE20H to FF1FH Immediate data or labels (even addresses only)

addr16

0000H to FFFFH Immediate data or labels (Only even addresses for 16-bit data transfer instructions)

addr11

0800H to 0FFFH Immediate data or labels

addr5

0040H to 007FH Immediate data or labels (even addresses only)

word

16-bit immediate data or label

byte

8-bit immediate data or label

bit

3-bit immediate data or label

RBn

RB0 to RB3

Note FFD0H to FFDFH are not addressable.

Remark Refer to the user’s manual of each product for the symbols of special function registers.

Advertising