CHAPTER 11 INSTRUCTION SET
265
Users Manual U10676EJ3V0UM
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) CY
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 higher 4 bits of FLAG
MOV1 CY, @H+FLAG ; CY FLAG
MOV1 PORT3.2, CY ; P32 CY