|
|
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 Registre, seg_05978d
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Text_Io;
with Unchecked_Conversion;
package body Registre is
function Creer (Nom : in Nom_Registre; Adresse : in Adresse_Registre)
return Objet is
Mon_Objet : Objet;
begin
Mon_Objet.Nom := Nom;
Mon_Objet.Adresse := Adresse;
return Mon_Objet;
end Creer;
procedure Ecrire (Registre : in out Objet; Valeur : in Valeur_Registre) is
begin
Registre.Adresse.all := Valeur;
Registre.Valeur := Registre.Adresse.all;
end Ecrire;
function Lire (Registre : in Objet) return Valeur_Registre is
La_Valeur : Valeur_Registre;
begin
La_Valeur := Registre.Adresse.all;
return La_Valeur;
end Lire;
procedure Image (Registre : in Objet) is
function To_Int is new Unchecked_Conversion (Adresse_Registre, Integer);
begin
Text_Io.Put_Line ("Registre" & String (Registre.Nom));
Text_Io.Put_Line ("adresse: " &
Integer'Image (To_Int (Registre.Adresse)));
Text_Io.Put_Line ("valeur: " & Valeur_Registre'Image (Registre.Valeur));
end Image;
procedure Detruire (Registre : in out Objet) is
begin
Registre.Nom := Null_Nom_Registre;
Registre.Valeur := 0;
Registre.Adresse := null;
end Detruire;
end Registre;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=21 rec1=00 rec2=01 rec3=046
[0x01] rec0=0d rec1=00 rec2=02 rec3=001
tail 0x21768097a890894542ca3 0x42a00088462060003