ST10 FAMILY PROGRAMMING MANUAL
46/172
ATOMIC
Begin ATOMIC Sequence
Syntax
ATOMIC op1
Operation
(count)
<-- (op1) [1
≤
op1
≤
4]
Disable interrupts and Class A traps
DO WHILE ((count)
≠
0 AND Class_B_trap_condition
≠
TRUE)
Next Instruction
(count) <-- (count) - 1
END WHILE
(count) = 0
Enable interrupts and traps
Description
Causes standard and PEC interrupts and class A hardware traps to be disabled for a specified number of
instructions. The ATOMIC instruction becomes immediately active so that no additional NOPs are
required.
Depending on the value of op1, the period of validity of the ATOMIC sequence extends over the sequence
of the next 1 to 4 instructions being executed after the ATOMIC instruction. All instructions requiring multi-
ple cycles or hold states to be executed are regarded as one instruction in this sense. Any instruction type
can be used with the ATOMIC instruction.
Note: The ATOMIC instruction must be used carefully (see Section 2.7 - ATOMIC and EXTended instruc-
tions on page 38).
Flags
Addressing Modes
E
Z
V
C
N
-
-
-
-
-
E
Not affected
Z
Not affected
V
Not affected
C
Not affected
N
Not affected
Mnemonic
Format
Bytes
ATOMIC
#data
2
D1 00##:0
2
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...