2 instruction codes, 1 description of instruction code table – NEC 78K/0 Series User Manual

Page 38

Advertising
background image

38

CHAPTER 4 INSTRUCTION SET

User's Manual U12326EJ4V0UM

4.2 Instruction Codes

4.2.1 Description of instruction code table

r

rp

RB

R

2

R

1

R

0

reg

P

1

P

0

reg-pair

RB

1

RB

0

reg-bank

0

0

0

R0

X

0

0

RP0

AX

0

0

RB0

0

0

1

R1

A

0

1

RP1

BC

0

1

RB1

0

1

0

R2

C

1

0

RP2

DE

1

0

RB2

0

1

1

R3

B

1

1

RP3

HL

1

1

RB3

1

0

0

R4

E

1

0

1

R5

D

1

1

0

R6

L

1

1

1

R7

H

Bn:

Immediate data corresponding to bit

Data:

8-bit immediate data corresponding to byte

Low/High byte: 16-bit immediate data corresponding to word

Saddr-offset:

16-bit address lower 8-bit offset data corresponding to saddr

Sfr-offset:

sfr 16-bit address lower 8-bit offset data

Low/High addr: 16-bit immediate data corresponding to addr16

jdisp:

Signed two’s complement data (8 bits) of relative address distance between the start

and branch addresses of the next instruction

fa

10

to fa

0

:

11 bits of immediate data corresponding to addr11

ta

4

to ta

0

:

5 bits of immediate data corresponding to addr5

Advertising