STZ

Transfer with condition

STZ

STore on Zero


[Syntax]

STZ src, dest

 

[Operation]

if ( Z == 1 )

dest = src;

 

[Function]

-

This instruction moves src to dest when the Z flag is 1. dest does not change when the Z flag is 0.

 

[Instruction Format]

Syntax

Processng Size

Operand

Code Size

(Byte)

src

dest

STZ src, dest

L

#SIMM:8

Rd

4

L

#SIMM:16

Rd

5

L

#SIMM:24

Rd

6

L

#IMM:32

Rd

7

STZ src, dest

[V2.01.00 or later]

L

Rs

Rd

3

 

[Flag Change]

-

This instruction does not affect the states of flags.

 

[Description Example]

STZ #1, R2

STZ R1, R2