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

⟦ffc3c45bd⟧ Ada Source

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

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 body Square is  
    type Matrix is array (Integer range <>, Integer range <>) of Token;
    type Position is
        record
            Line : Integer range 1 .. N;
            Colon : Integer range 1 .. N;
        end record;

    Mat : Matrix (1 .. N, 1 .. N);
    Pos : Position;

    procedure Deposit (T : Token) is
    begin
        null;
    end Deposit;


    procedure Move (D : Direction) is
    begin
        case D is
            when North =>
                if (Pos.Colon = N) then
                    Pos.Colon := 1;
                else
                    Pos.Colon := Pos.Colon + 1;
                end if;
                null;
            when South =>
                null;
            when East =>
                null;
            when West =>
                null;

        end case;

    end Move;


    procedure Go_To_Center is
    begin
        Pos.Line := N / 2 + 1;
        Pos.Colon := N / 2 + 1;
    end Go_To_Center;


    function Is_Free return Boolean is
    begin
        return ([expression]);
    end Is_Free;
end Square;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=2c rec1=00 rec2=01 rec3=032
        [0x01] rec0=09 rec1=00 rec2=02 rec3=001
    tail 0x21536cdb285fe56aed36c 0x42a00088462060003