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

⟦3c9b90bda⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test_Fifo, seg_02ee9b

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 Fifo;
with Text_Io;
procedure Test_Fifo is
    Fifo1 : Fifo.Object (10);
    Val : Integer;
begin
    Text_Io.Put_Line ("debut");
    Fifo.Enfiler (F => Fifo1, E => 1);
    Fifo.Enfiler (F => Fifo1, E => 2);
    Fifo.Enfiler (F => Fifo1, E => 3);
    Fifo.Enfiler (F => Fifo1, E => 4);
    Fifo.Enfiler (F => Fifo1, E => 5);
    Fifo.Enfiler (F => Fifo1, E => 6);
    Fifo.Enfiler (F => Fifo1, E => 7);
    Fifo.Enfiler (F => Fifo1, E => 8);

    Fifo.Enfiler (F => Fifo1, E => 9);


    Fifo.Defiler (F => Fifo1, E => Val);
    Text_Io.Put_Line ("val:=" & Integer'Image (Val));
    Fifo.Defiler (F => Fifo1, E => Val);
    Text_Io.Put_Line ("val:=" & Integer'Image (Val));

    Fifo.Defiler (F => Fifo1, E => Val);
    Text_Io.Put_Line ("val:=" & Integer'Image (Val));

    Fifo.Defiler (F => Fifo1, E => Val);
    Text_Io.Put_Line ("val:=" & Integer'Image (Val));

    Fifo.Defiler (F => Fifo1, E => Val);
    Text_Io.Put_Line ("val:=" & Integer'Image (Val));

    Fifo.Defiler (F => Fifo1, E => Val);
    Text_Io.Put_Line ("val:=" & Integer'Image (Val));

    Fifo.Defiler (F => Fifo1, E => Val);
    Text_Io.Put_Line ("val:=" & Integer'Image (Val));
    Fifo.Defiler (F => Fifo1, E => Val);
    Text_Io.Put_Line ("val:=" & Integer'Image (Val));

    Fifo.Defiler (F => Fifo1, E => Val);
    Text_Io.Put_Line ("val:=" & Integer'Image (Val));
    Fifo.Defiler (F => Fifo1, E => Val);
    Text_Io.Put_Line ("val:=" & Integer'Image (Val));

    Fifo.Defiler (F => Fifo1, E => Val);
    Text_Io.Put_Line ("val:=" & Integer'Image (Val));  
exception
    when Fifo.Empty =>
        Text_Io.Put_Line ("attention pile vide");
    when Fifo.Full =>
        Text_Io.Put_Line ("attention pile pleine");
end Test_Fifo;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=21 rec1=00 rec2=01 rec3=04e
        [0x01] rec0=17 rec1=00 rec2=02 rec3=001
    tail 0x21727b64a84896a2f5b5a 0x42a00088462060003