Bit Transfer Instructions - NEC PD754144 User Manual

4-bit single-chip microcontrollers
Table of Contents

Advertisement

11.4.3 Bit transfer instructions

MOV1 CY, fmem.bit
MOV1 CY, pmem.@L
MOV1 CY, @H+mem.bit
Function: CY
(bit specified by operand)
Transfers the contents of the data memory addressed in the bit manipulating addressing mode (fmem.bit,
pmem.@L, or @H+mem.bit) to the carry flag (CY).
MOV1 fmem.bit, CY
MOV1 pmem.@L, CY
MOV1 @H+mem.bit, CY
Function: (Bit specified by operand)
Transfers the contents of the carry flag (CY) to the data memory bit addressed in the bit manipulation addressing
mode (fmem.bit, pmem.@L, or @H+mem.bit).
Application example
To output the flag of bit 3 at data memory address 3FH to the bit 2 of port 3
FLAG
EQU 3FH.3
SEL
MB0
MOV
H, #FLAG SHR 6 ; H
MOV1
CY, @H+FLAG
MOV1
PORT3.2, CY
CHAPTER 11 INSTRUCTION SET
CY
higher 4 bits of FLAG
; CY
FLAG
; P32
CY
User's Manual U10676EJ3V0UM
265

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents