PROGRAMMING MANUAL Standard Instruction Set
53/197
Number of bytes Specifies the size of an instruction in bytes. All ST10 instructions are
either 2 or 4 bytes.Instructions are classified as either single word or double word
instructions.
1.7 ATOMIC and EXTended instructions
ATOMIC, EXTR, EXTP, EXTS, EXTPR, EXTSR instructions disable standard and PEC inter-
rupts and class A traps during a sequence of the following 1...4 instructions. The length of
the sequence is determined by an operand (op1 or op2, depending on the instruction). The
EXTended instructions also change the addressing mechanism during this sequence (see
detailed instruction description).
The ATOMIC and EXTended instructions become active immediately, so no additional NOPs
are required. All instructions requiring multiple cycles or hold states to be executed are
regarded as one instruction in this sense. Any instruction type can be used with the ATOMIC
and EXTended instructions.
CAUTION: When a Class B trap interrupts an ATOMIC or EXTended sequence, this
sequence is terminated, the interrupt lock is removed and the standard condition is restored,
before the trap routine is executed! The remaining instructions of the terminated sequence
that are executed after returning from the trap routine, will run under standard conditions!
CAUTION: When using the ATOMIC and EXTended instructions with other system control or
branch instructions.
CAUTION: When using nested ATOMIC and EXTended instructions. There is ONE counter
to control the length of this sort of sequence, i.e. issuing an ATOMIC or EXTended instruction
within a sequence will reload the counter with value of the new instruction.
Figure 3 Instruction format representation
Bits in ascending order LSB
MSB
Representation in the
Assembler Listing:
N2N
1
N4N
3
N6N
5
N8N
7
High Byte 2nd word
Low Byte 2nd word
High Byte 1st word
Low Byte 1st word
Internal Organization:
N8 N7 N6 N5 N4 N3 N2 N1