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

⟦262d4e344⟧ Ada Source

    Length: 2048 (0x800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Magic, seg_02fa9a

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 Magic is
    subtype Ordre is Positive range 1 .. 999;
    type Square (O : Ordre) is private;
    type Direction is (North, South, East, West);
    procedure Move_To (Carre : in out Square; D : in Direction);
    procedure Go_To_Center (Carre : in out Square);  
    subtype Token is Positive;
    procedure Deposit (Carre : in out Square; T : in Token);
    function Cell_Empty (Carre : in Square) return Boolean;
    procedure Display (Carre : in Square);
    procedure Johnson (Carre : in out Square);
    function Get_Size return Ordre;
private
    type Matrix is array (Ordre range <>, Ordre range <>) of Natural;
    subtype Row is Ordre;
    subtype Column is Ordre;
    type Square (O : Ordre) is
        record
            Matrice : Matrix (1 .. O, 1 .. O);
            Ligne : Row := O / 2;
            Colonne : Column := O / 2 + 1;
        end record;
end Magic;

E3 Meta Data

    nblk1=1
    nid=0
    hdr6=2
        [0x00] rec0=19 rec1=00 rec2=01 rec3=000
    tail 0x21528dc7484925c251fc0 0x42a00088462060003