DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦4cab41181⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Selecteur, seg_05b8d1

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



with Byte_Tools;
with Carte_Es;
package body Selecteur is

    Max_Pos : constant Integer := Tposition'Pos (Tposition'Last);

    function Get_Position return Tposition is
    begin
        return Tposition'First;
        -- A implementer sitot que les entrees physiques le seront
    end Get_Position;


    function Creer (Sorties : in Tsorties) return Objet is
    begin  
        return Objet'(Sorties => Sorties, Position => Get_Position);
    end Creer;


    procedure Positionner (Un_Objet : in Objet; Sur : in Tposition) is
        Valeur : Byte_Tools.Byte_As_Number := Tposition'Pos (Sur);
    begin
        for S in 1 .. Nb_Sorties loop
            if Byte_Tools.Test_Bit (Number => Byte_Tools.Bit_Number (S - 1),
                                    Of_Byte => Valeur) then
                Carte_Es.Activer (Sortie_Numero => Un_Objet.Sorties (S));
            else
                Carte_Es.Desactiver (Sortie_Numero => Un_Objet.Sorties (S));
            end if;
        end loop;
    end Positionner;


    function Lire (Un_Objet : in Objet) return Tposition is
    begin
        return Un_Objet.Position;
    end Lire;
end Selecteur;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1e rec1=00 rec2=01 rec3=00a
        [0x01] rec0=0b rec1=00 rec2=02 rec3=001
    tail 0x2176b0746894b6eccb246 0x42a00088462060003