beautypg.com

Chapter 18 instruction operations – NEC PD78214 User Manual

Page 436

background image

407

Chapter 18 Instruction Operations

18

MOVW

Operation

Mnemonic

Operand

No. of

bytes

Flags

rp, #word

3

rp

← word

saddrp, #word

4

(saddrp)

← word

sfrp, #word

4

sfrp

← word

rp, rp'

2

rp

← rp'

AX, saddrp

2

AX

← (saddrp)

saddrp, AX

2

(saddrp)

← AX

AX, sfrp

2

AX

← sfrp

sfrp, AX

2

sfrp

← AX

AX, mem1

2

AX

← (mem1)

AX, & mem1

3

AX

← (& mem1)

mem1, AX

2

(mem1)

← AX

& mem1, AX

3

(& mem1)

← AX

Z

AC

CY

ADD

ADDC

Operation

Mnemonic

Operand

No. of

bytes

Flags

A, #byte

2

A, CY

← A + byte

Ч

Ч

Ч

saddr, #byte

3

(saddr), CY

← (saddr) + byte

Ч

Ч

Ч

sfr, #byte

4

sfr, CY

← sfr + byte

Ч

Ч

Ч

r, r'

2

r, CY

← r + r'

Ч

Ч

Ч

A, saddr

2

A, CY

← A + (saddr)

Ч

Ч

Ч

A, sfr

3

A, CY

← A + sfr

Ч

Ч

Ч

saddr, saddr'

3

(saddr), CY

← (saddr) + (saddr')

Ч

Ч

Ч

A, mem

2-4

A, CY

← A + (mem)

Ч

Ч

Ч

A, & mem

3-5

A, CY

← A + (& mem)

Ч

Ч

Ч

A, #byte

2

A, CY

← A + byte + CY

Ч

Ч

Ч

saddr, #byte

3

(saddr), CY

← (saddr) + byte + CY

Ч

Ч

Ч

sfr, #byte

4

sfr, CY

← sfr + byte + CY

Ч

Ч

Ч

r, r'

2

r, CY

← r + r' + CY

Ч

Ч

Ч

A, saddr

2

A, CY

← A + (saddr) + CY

Ч

Ч

Ч

A, sfr

3

A, CY

← A + sfr + CY

Ч

Ч

Ч

saddr, saddr'

3

(saddr), CY

← (saddr) + (saddr') + CY

Ч

Ч

Ч

A, mem

2-4

A, CY

← A + (mem) + CY

Ч

Ч

Ч

A, & mem

3-5

A, CY

← A + (& mem) + CY

Ч

Ч

Ч

Z

AC

CY

(2) 16-bit data transfer instructions: MOVW

(3) 8-bit arithmetic/logical instructions: ADD, ADDC, SUB, SUBC, AND, OR, XOR, CMP

(Continued)

This manual is related to the following products: