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

⟦d4dc0cb03⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Square, seg_02fa9b

Derivation

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

E3 Source Code



package Square is
    Max : constant Integer := 99;
    subtype Ordre is Integer range 0 .. Max;

    type Direction is (North, South, East, West);
    type Matrix is
       array (Integer range 1 .. Max, Integer range 1 .. Max) of Integer;
    type Case_Courrante is  
        record
            X : Ordre;
            Y : Ordre;
        end record;

    procedure Deposit (Carre : in out Matrix;
                       Coordonnees : in out Case_Courrante;
                       I : in Integer;
                       Nombre : in Integer);
    procedure Display (Carre : in Matrix; Nombre : in Integer);
    procedure Init_Square (Carre : in out Matrix; Nombre : in Integer);
    procedure Move (D : in Direction;  
                    Coordonnees : in out Case_Courrante;
                    Nombre : in Integer);
    procedure Go_To_Center
                 (Coordonnees : in out Case_Courrante; Nombre : in Integer);
    function Impaire (Nombre : in Integer) return Boolean;
    procedure Saisie (Nombre : in out Integer);
end Square;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1a rec1=00 rec2=01 rec3=05a
        [0x01] rec0=04 rec1=00 rec2=02 rec3=001
    tail 0x21528dca884925c486524 0x42a00088462060003