Mov1 – NEC 78K/0 Series User Manual

Page 86

Advertising
background image

86

CHAPTER 5 EXPLANATION OF INSTRUCTIONS

User's Manual U12326EJ4V0UM

Move Single Bit

MOV1

1 Bit Data Transfer

[Instruction format]

MOV1 dst, src

[Operation]

dst

← src

[Operand]

Mnemonic

Operand(dst,src)

Mnemonic

Operand(dst,src)

MOV1

CY, saddr.bit

MOV1

saddr.bit, CY

CY, sfr.bit

sfr.bit, CY

CY, A.bit

A.bit, CY

CY, PSW.bit

PSW.bit, CY

CY, [HL].bit

[HL].bit, CY

[Flag]

dst = CY

PSW.bit

In all other cases

Z

AC

CY

Z

AC

CY

Z

AC

CY

Ч

Ч

Ч

[Description]

•

Bit data of the source operand (src) specified by the 2nd operand is transferred to the destination operand

(dst) specified by the 1st operand.

•

When the destination operand (dst) is CY or PSW.bit, only the corresponding flag is changed.

[Description example]

MOV1 P3.4, CY; The CY flag contents are transferred to bit 4 of port 3.

Advertising