|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test_Circulary_Control, seg_005e4d
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Control;
with Text_Io;
procedure Test_Circulary_Control is
The_Line : String (1 .. 80);
The_Length : Natural;
package Ring is new Control (Minimum => 0, Maximum => 10, Default => 5);
The_Value : Ring.Object;
begin
Ring.Set (The_Value, To_Mode => Ring.Circulary);
Done:
loop
Text_Io.Get_Line (The_Line, The_Length);
for I in 1 .. The_Length loop
begin
case The_Line (I) is
when '+' =>
Ring.Up (The_Value);
when '-' =>
Ring.Down (The_Value);
when '?' =>
Ring.Put (The_Value);
when 'q' =>
exit Done;
when others =>
null;
end case;
exception
when Ring.Overflow | Ring.Underflow =>
Text_Io.Put_Line ("there is a bug !!!");
end;
end loop;
end loop Done;
end Test_Circulary_Control;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=1d rec1=00 rec2=01 rec3=02e
[0x01] rec0=09 rec1=00 rec2=02 rec3=000
tail 0x217016e2881ba73be22ec 0x42a00088462063c03