Operations:

Format

Syntax:

Operation:

Operands:

Architecture revision

Opcode

1

stcond Rp[disp], Rs

SREG[Z] = SREG[L];
If SREG[L] 
     *(Rp + SE(disp16)) = Rs;
{s , p} ∈ {0, 1, …, 15}
disp ∈ {-32768, -32767, ..., 32767}

Rev1+

111

Rp

10111

Rs

disp16

3

4

5

4

16

Description

The source register is stored to the word memory location referred to by the pointer address if SREG[L] is set. Also, SREG[L] is copied to SREG[Z] to indicate a success or failure of the oper- ation. This instruction is used for atomical memory access.

Status Flags:

Q:

Not affected.

V:

Not affected.

N:

Not affected.

Z:

SREG[Z] = SREG[L].

C:

Not affected.

Note: