EasyManua.ls Logo

ST ST10 Series - ATOMIC and Extended Instructions

ST ST10 Series
197 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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