Set or Reset Carry Flag STC, CLC

Set or Reset Carry Flag: STC, CLC

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

Error

Zero

Carry

STC, CLC

n

-

-

-

-

-

-

-

-

-

-

-

-

-

1

-

-

o

 

 

 

 

If an input condition for STC is turned ON, Carry Flag is set.

Carry (F112)

If an input condition for CLC is turned ON, Carry Flag is reset.

 

If an input condition for STC or CLC is turned OFF, there is no change.

 

STC

 If an input condition for STC is turned ON, Carry Flag (F112) is SET (ON).

 

 

CLC

 If an input condition for CLC is turned ON, Carry Flag (F112) is RESET (OFF).

 

 

Program)

When an input condition (X01) for STC is turned ON, Carry Flag (F112) is SET.