|
|
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: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Compteur, seg_05c262
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
package body Compteur is
procedure Initialiser (Un_Objet : in out Object) is
begin
Un_Objet.La_Valeur := Defaut;
end Initialiser;
procedure Fixer (Un_Objet : in out Object;
A_La_Valeur : Integer := Defaut) is
begin
Un_Objet.La_Valeur := A_La_Valeur;
end Fixer;
procedure Fixer (Un_Objet : in out Object; En_Mode : Mode) is
begin
Un_Objet.Le_Mode := En_Mode;
end Fixer;
procedure Augmenter (Un_Objet : in out Object; De : Positive := 1) is
begin
Un_Objet.La_Valeur := Un_Objet.La_Valeur + De;
if Un_Objet.La_Valeur > Maximum then
raise Debordement;
end if;
end Augmenter;
procedure Diminuer (Un_Objet : in out Object; De : Positive := 1) is
begin
Un_Objet.La_Valeur := Un_Objet.La_Valeur - De;
if Un_Objet.La_Valeur < Minimum then
raise Epuisement;
end if;
end Diminuer;
function Lire (Un_Objet : in Object) return Integer is
begin
return Un_Objet.La_Valeur;
end Lire;
end Compteur;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=25 rec1=00 rec2=01 rec3=00e
[0x01] rec0=08 rec1=00 rec2=02 rec3=001
tail 0x2176b9214895c3d039715 0x42a00088462060003