L
Little
Could someone help me code this algorithm:
KIS::
in AEE: array[0..n] of AEEEntry,
IIR, AEESize: integer where AEESize = n,
alpha: channel of strings;
local i: integer where i = 0,
Flag: boolean where Flag = False;
l_0: while ((i < AEESize) and (Flag = False)) do
if (IIR <> AEE->IIC) then i := i+1
else Flag = True:ˆl_0
l_1: if Flag = False then
Send(alpha,''Unrecognized interrupt'');
else Initiate interrupt handler AEE->IHA :ˆl_1
l_2: RIS():ˆl_2
where:
AEE is the array of expected events
IIR is the Interrupt Identification Register
IIC is the Interrupt Identification Code
RIS is the Return from Interrupt System
Thanks for the help.
KIS::
in AEE: array[0..n] of AEEEntry,
IIR, AEESize: integer where AEESize = n,
alpha: channel of strings;
local i: integer where i = 0,
Flag: boolean where Flag = False;
l_0: while ((i < AEESize) and (Flag = False)) do
if (IIR <> AEE->IIC) then i := i+1
else Flag = True:ˆl_0
l_1: if Flag = False then
Send(alpha,''Unrecognized interrupt'');
else Initiate interrupt handler AEE->IHA :ˆl_1
l_2: RIS():ˆl_2
where:
AEE is the array of expected events
IIR is the Interrupt Identification Register
IIC is the Interrupt Identification Code
RIS is the Return from Interrupt System
Thanks for the help.