beautypg.com

Move c, acc.

Page 194: Move c, acc. -17, Move c, src. -17, Move c, #0 -17, Maxq family user’s guide

background image

18-17

MAXQ Family User’s Guide

MOVE C, Acc.

Move Accumulator Bit to Carry Flag

Description:

Replaces the Carry (C) status flag with the specified active accumulator bit.

Status Flags:

C

Operation:

C

← Acc.

Encoding:

15

0

MAXQ010
Example(s):

; Acc = 01h, C=0

MOVE C, Acc.0

; C =1

MAXQ020
Example(s):

; Acc = 01C0h, C=0

MOVE C, Acc.8

; C =1

Special Notes:

For the MAXQ10, the accumulator width is only 8 bits. Thus, only bit index encoding ('bbbb') for bits 0 ('0000')

through 7 ('0111') is supported.

MOVE C, src.

Move Bit to Carry Flag

Description:

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

Status Flags:

C

Operation:

C

← src.

Encoding:

15

0

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

Example(s):

; C = 1

MOVE C, #0

; C

← 0

fbbb

0111

ssss

ssss

1101

1010

0000

1010

1110

1010

bbbb

1010

Maxim Integrated