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

⟦2ea64fdad⟧ Ada Source

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

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 Control;
with Text_Io;
procedure Test_Checked_Control is  
    The_Line   : String (1 .. 80);
    The_Length : Natural;
    package Supply is new Control (Minimum => 0, Maximum => 15, Default => 0);
    The_Voltage : Supply.Object;
begin
    Done:
        loop
            Text_Io.Get_Line (The_Line, The_Length);  
            for I in 1 .. The_Length loop
                begin
                    case The_Line (I) is
                        when '+' =>
                            Supply.Up (The_Voltage);
                        when '-' =>
                            Supply.Down (The_Voltage);
                        when '?' =>
                            Supply.Put (The_Voltage);
                        when 'q' =>
                            exit Done;
                        when others =>
                            null;
                    end case;
                exception
                    when Supply.Overflow =>
                        Text_Io.Put_Line ("counter overflow !!!");
                    when Supply.Underflow =>
                        Text_Io.Put_Line ("counter underflow !!!");
                end;
            end loop;
        end loop Done;
end Test_Checked_Control;




E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1d rec1=00 rec2=01 rec3=020
        [0x01] rec0=0a rec1=00 rec2=02 rec3=000
    tail 0x217016c8681ba721c92f1 0x42a00088462063c03