|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 4096 (0x1000)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Point_D_Arret, seg_026503, seg_0268b2, seg_027513, seg_027e75
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
package body Point_D_Arret is
-- CONSTANTES ------------------------------------------------------------
Nb_Max : constant Positive := 10;
-- TYPES -----------------------------------------------------------------
subtype T_Taille_Liste is Positive range 1 .. Nb_Max;
type T_Element is
record
Actif : Boolean := False;
Position : Adresse.T_Adresse;
end record;
type T_Tab_Element is array (T_Taille_Liste) of T_Element;
-- VARIABLES ------------------------------------------------------------
Tab_Point_D_Arret : T_Tab_Element :=
(others => (Actif => False, Position => 0));
-- PROCEDURES -----------------------------------------------------------
procedure Reset is
begin
for I in T_Taille_Liste loop
Tab_Point_D_Arret (I).Actif := False;
Tab_Point_D_Arret (I).Position := 0;
end loop;
end Reset;
----------------------------------------------
procedure Set (Une_Adresse : Adresse.T_Adresse) is
begin
for I in T_Taille_Liste loop
if not Tab_Point_D_Arret (I).Actif then
Tab_Point_D_Arret (I).Actif := True;
Tab_Point_D_Arret (I).Position := Une_Adresse;
exit;
end if;
end loop;
end Set;
----------------------------------------------
function Test (Une_Adresse : Adresse.T_Adresse) return Boolean is
begin
for I in T_Taille_Liste loop
if Tab_Point_D_Arret (I).Actif and then
Tab_Point_D_Arret (I).Position = Une_Adresse then
return True;
end if;
end loop;
return False;
end Test;
procedure Remove (Une_Adresse : Adresse.T_Adresse) is
begin
for I in T_Taille_Liste loop
if Tab_Point_D_Arret (I).Actif and then
Tab_Point_D_Arret (I).Position = Une_Adresse then
Tab_Point_D_Arret (I).Actif := False;
Tab_Point_D_Arret (I).Position := 0;
exit;
end if;
end loop;
end Remove;
begin
Reset;
end Point_D_Arret;
nblk1=3
nid=0
hdr6=6
[0x00] rec0=1f rec1=00 rec2=01 rec3=01c
[0x01] rec0=1e rec1=00 rec2=02 rec3=034
[0x02] rec0=0b rec1=00 rec2=03 rec3=000
tail 0x21520408c83aa61285f7a 0x42a00088462060003