5-46
Z380
™
U
SER
'
S
M
ANUAL
DC-8297-03
Z
ILOG
DI
DISABLE INTERRUPTS
DI [n]
Operation:
if (n is present) then begin
for i=1 to 4 begin
if (n(i) = 1) then begin
IER(i-1)
←
0
end
end
if (n(0) = 1) then begin
SR(5)
←
0
end
end
else begin
SR(5)
←
0
end
If an argument is present, disable the selected interrupts by clearing the appropriate enable
bits in the Interrupt Enable Register, and then clear the Interrupt Enable Flag (IEF1) in the
Select Register (SR) if the least-significant bit of the argument is set, disabling maskable
interrupts. Bits 7-5 of the argument are ignored.
If no argument is present, IEF1 in the SR is set to 0, disabling maskable interrupts.
Note that during execution of this instruction the maskable interrupts are not sampled.
Flags:
S:
Unaffected
Z:
Unaffected
H:
Unaffected
V:
Unaffected
N:
Unaffected
C:
Unaffected
Addressing
Execute
Mode
Syntax
Instruction Format
Time
Note
DI
11110011
2
DI n
11011101 11110011 —n——
2