Maxim Integrated MAXQ622 User Manual

Page 223

Advertising
background image

MAXQ612/MAXQ622 User’s Guide

Maxim Integrated

16-13

MOVE C, src.<b>

Move Bit to Carry Flag

Description:

Replaces the Carry (C) status flag with the specified source bit src.<b>.

Status Flag:

C

Operation:

C

← src .<b>

Encoding:

15

0

fbbb

0111

ssss

ssss

Example(s):

; M0[0] = FEh; C=1 (assume M0[0] is an 8-bit register)

MOVE C, M0[0] .0

; C=0

MOVE C, #0

Clear Carry Flag

Description:

Clears the Carry (C) processor status flag .

Status Flag:

C

← 0

Operation:

C

← 0

Encoding:

15

0

1101

1010

0000

1010

Example(s):

; C = 1

MOVE C, #0

; C

← 0

MOVE C, #1

Set Carry Flag

Description:

Sets the Carry (C) processor status flag .

Status Flags: C ← 1

Operation:

C

← 1

Encoding:

15

0

1101

1010

0001

1010

Example(s):

; C = 0

MOVE C, #1

; C

← 1

MOVE dst.<b>, #0

Clear Bit

Description:

Clears the bit specified by dst.<b>.

Status Flags: C, E (if dst is PSF)
Operation:

dst .<b>

← 0

Encoding:

15

0

1ddd

dddd

0bbb

0111

Example(s):

; M0[0] = FEh

MOVE M0[0] .1, #0

; M0[0] = FCh

MOVE M0[0] .7, #0

; M0[0] = 7Ch

Special Notes: Only system module 8 and peripheral modules (0 to 5) are supported by MOVE dst.<b>, #0 .

Advertising
This manual is related to the following products: