beautypg.com

Chapter 18 instruction operations – NEC PD78214 User Manual

Page 440

background image

411

Chapter 18 Instruction Operations

18

ADJBA

ADJBS

Operation

Mnemonic

Operand

No. of

bytes

Flags

Z

AC

CY

1

Use the decimal adjust accumulator after addition.

Ч

Ч

Ч

1

Use the decimal adjust accumulator after subtraction.

Ч

Ч

Ч

MOV1

AND1

OR1

Operation

Mnemonic

Operand

No. of

bytes

Flags

Z

AC

CY

CY, saddr.bit

3

CY

← (saddr.bit)

×

CY, sfr.bit

3

CY

← sfr.bit

×

CY, A.bit

2

CY

← A.bit

×

CY, X.bit

2

CY

← X.bit

×

CY, PSW.bit

2

CY

← PSW.bit

×

saddr.bit, CY

3

(saddr.bit)

← CY

sfr.bit, CY

3

sfr.bit

← CY

A.bit, CY

2

A.bit

← CY

X.bit, CY

2

X.bit

← CY

PSW.bit, CY

2

PSW.bit

← CY

Ч

Ч

CY, saddr.bit

3

CY

← CY ∧ (saddr.bit)

×

CY, /saddr.bit

3

CY

← CY ∧ (saddr.bit)

×

CY, sfr.bit

3

CY

← CY ∧ sfr.bit

×

CY, /sfr.bit

3

CY

← CY ∧ sfr.bit

×

CY, A.bit

2

CY

← CY ∧ A.bit

×

CY, /A.bit

2

CY

← CY ∧ A.bit

×

CY, X.bit

2

CY

← CY ∧ X.bit

×

CY, /X.bit

2

CY

← CY ∧ X.bit

×

CY, PSW.bit

2

CY

← CY ∧ PSW.bit

×

CY, /PSW.bit

2

CY

← CY ∧ PSW.bit

×

CY, saddr.bit

3

CY

← CY ∨ (saddr.bit)

×

CY, /saddr.bit

3

CY

← CY ∨ (saddr.bit)

×

CY, sfr.bit

3

CY

← CY ∨ sfr.bit

×

CY, /sfr.bit

3

CY

← CY ∨ sfr.bit

×

CY, A.bit

2

CY

← CY ∨ A.bit

×

CY, /A.bit

2

CY

← CY ∨ A.bit

×

CY, X.bit

2

CY

← CY ∨ X.bit

×

CY, /X.bit

2

CY

← CY ∨ X.bit

×

CY, PSW.bit

2

CY

← CY ∨ PSW.bit

×

CY, /PSW.bit

2

CY

← CY ∨ PSW.bit

×

(8) BCD conversion instructions: ADJBA, ADJBS

(9) Bit manipulation instructions: MOV1, AND1, OR1, XOR1, SET1, CLR1, NOT1

(Continued)

This manual is related to the following products: