Chapter 15 instruction set, 1 operation, 1 operand identifiers and description methods – NEC switch User Manual

Page 200

Advertising
background image

User’s Manual U12978EJ3V0UD

200

CHAPTER 15 INSTRUCTION SET

This chapter lists the instruction set of the

µPD789800 Subseries. For details of the operation and machine

language (instruction code) of each instruction, refer to 78K/0S Series Instruction User’s Manual (U11047E).

15.1 Operation

15.1.1 Operand identifiers and description methods

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

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

description methods, select one of them. Uppercase letters and the symbols #, !, $, and [ ] are keywords and are

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

• #: Immediate data specification

• $: Relative address specification

• !: Absolute 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 15-1. Operand Identifiers and Description Methods

Identifier

Description Method

r

rp

sfr

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

saddr

saddrp

FE20H to FF1FH Immediate data or label

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

addr16

addr5

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

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

word

byte

bit

16-bit immediate data or label

8-bit immediate data or label

3-bit immediate data or label

Remark

See Table 3-2 Special Function Register List for symbols of special function registers.

Advertising