|
|
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, package body Timer, seg_021013
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
with Z80_Defs, Text_Io;
package body Timer is
-- VARIABLES ------------------------------------------------------------
La_Fin : Boolean := False;
Tache_Tempo : Pt_Tache_Tempo;
Delai_Tempo : Z80_Defs.Mot := 0;
-- TACHE ----------------------------------------------------------------
task body T_Tempo is
begin
for I in 1 .. 5 loop
delay (Duration (Delai_Tempo) / 1000);
Text_Io.Put_Line ("timer");
end loop;
end T_Tempo;
------------------------------
task body T_Timer is
begin
while (not La_Fin) loop
select
---------------------------------
accept Reset do
[statement]
end Reset;
---------------------------------
or
accept Afficher do
[statement]
end Afficher;
---------------------------------
or
accept Lancer (Delai : Z80_Defs.Mot) do
Delai_Tempo := Delai;
Tache_Tempo := new T_Tempo;
end Lancer;
---------------------------------
or
accept Fin do
La_Fin := True;
end Fin;
end select;
end loop;
end T_Timer;
end Timer;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=28 rec1=00 rec2=01 rec3=000
[0x01] rec0=17 rec1=00 rec2=02 rec3=000
tail 0x2151c8660838d4d642104 0x42a00088462060003