SCCnd

Condition setting

SCCnd

Store Condition Conditionally


[Syntax]

SCCnd.size dest

 

[Operation]

if ( Cnd )

dest = 1;

else

dest = 0;

 

[Function]

-

This instruction moves the truth-value of the condition specified by Cnd to dest; that is, 1 or 0 is stored to dest if the condition is true or false, respectively.

-

The following table lists the types of SCCnd.

BCnd

 

Condition

Expression

SCGEU,

SCC

C == 1

Equal to or greater than/C flag is 1

<=

SCEQ,

SCZ

Z == 1

Equal to/Z flag is 1

=

SCGTU

(C & ~Z) == 1

Greater than

<

SCPZ

S == 0

Positive or zero

> 0

SCGE

(S ^ O) == 0

Equal to or greater than as signed integer

<=

SCGT

((S ^ O) |Z) == 0

Greater than as signed integer

<

SCO

O == 1

O flag is 1

 

SCLTU,

SCNC

C == 0

Less than/C flag is 0

<=

SCNE,

SCNZ

Z == 0

Not equal to/Z flag is 0

 

SCLEU

(C & ~Z) == 0

Equal to or less than

 

SCN

S == 1

Negative

0>

SCLE

((S ^ O) |Z) == 1

Equal to or less than as signed integer

>=

SCLT

(S ^ O) == 1

Less than as signed integer

>

SCNO

O == 0

O flag is 0

 

 

[Instruction Format]

Syntax

size

Processng Size

dest

Code size

(Byte)

SCCnd.size dest

L

L

Rd

3

B/W/L

size

[Rd]

3

B/W/L

size

dsp:8[Rd]

4

B/W/L

size

dsp:16[Rd]

5

[Flag Change]

-

This instruction does not affect the states of flags.

[Description Example]

SCC.L R2

SCNE.W [R2]