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

⟦01a95693d⟧ Ada Source

    Length: 2048 (0x800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, generic, package Square, seg_02f4e8

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



generic
    Large : Integer := 5;
package Square is
    subtype Token is Natural range 0 .. (Large * Large);
    type Direction is (North, South, East, West);
    procedure Move (D : Direction);
    procedure Go_To_Center;
    procedure Deposit (T : Token);
    function Get_Token return Token;
    procedure Wrap_If_Edge;
    procedure Clear_My_Square;  
    procedure Display_Square;
private
    subtype Square_Large is Positive range 1 .. Large;
    type My_Square is array (Square_Large, Square_Large) of Token;
    Magic : My_Square;
    X, Y : Integer;  
end Square;


E3 Meta Data

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