|
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 - download
Length: 6144 (0x1800) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Ecriture_Sur_Port_16, seg_03da9d
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
with Device_Independent_Io; with Io; with System; with Terminal_Specific; with Text_Io; with Unchecked_Conversion; procedure Ecriture_Sur_Port_16 is package Dio renames Device_Independent_Io; package Ts renames Terminal_Specific; package Tio renames Text_Io; subtype Bs is System.Byte_String; F_Out : Ts.File_Type; F_In : Ts.File_Type; Buf : System.Byte_String (0 .. 255); B : System.Byte; Cnt : Natural; Beep_4 : constant Bs := (16#01#, 16#04#, 16#00#, 16#01#, 16#2C#, 16#F1#, 16#F2#); Beep_3 : constant Bs := (16#01#, 16#03#, 16#00#, 16#01#, 16#2C#, 16#F1#, 16#F2#); Site_00 : constant Bs := (16#01#, 16#03#, 16#00#, 16#04#, 16#27#, 16#00#, 16#00#, 16#00#, 16#F1#, 16#F2#); Horloge_00 : constant Bs := (16#01#, 16#03#, 16#00#, 16#04#, 16#23#, 16#00#, 16#00#, 16#00#, 16#F1#, 16#F2#); Rapport_Site : constant Bs := (16#01#, 16#03#, 16#00#, 16#01#, 16#28#, 16#F1#, 16#F2#); Rapport_Horloge : constant Bs := (16#01#, 16#03#, 16#00#, 16#01#, 16#24#, 16#F1#, 16#F2#); Rapport_Evenement : constant Bs := (16#01#, 16#03#, 16#00#, 16#01#, 16#1D#, 16#F1#, 16#F2#); Etoile : constant Bs := (1 => 42); Val : String (1 .. 100); Compteur : Natural; begin Text_Io.Put_Line (" Avant Ouverture FICHIER "); Dio.Open (File => F_Out, Mode => Dio.Out_File, Name => "!machine.devices.terminal_16", Form => ""); Text_Io.Put_Line (" Entrer Dans Boucle Loop BIP "); for I in 1 .. 2 loop Text_Io.Put_Line (" Tour = " & Natural'Image (Natural (I))); delay 1.0; Dio.Write (File => F_Out, Item => Beep_3); delay 0.2; Dio.Write (File => F_Out, Item => Beep_4); delay 0.1; Dio.Write (File => F_Out, Item => Beep_3); delay 0.5; end loop; -- Dio.Write (File => F_Out, Item => Beep_3); -- delay 1.0; -- end loop; Text_Io.Put_Line (" SORTIE ... Boucle .... BIP ??? "); -- Dio.Write (File => F_Out, Item => Beep_3); -- delay 0.7; -- Dio.Write (File => F_Out, Item => Beep_3); -- delay 0.2; -- Dio.Write (File => F_Out, Item => Beep_3); -- delay 1.0; Dio.Write (File => F_Out, Item => Site_00); delay 1.0; Dio.Write (File => F_Out, Item => Rapport_Horloge); delay 1.0; Dio.Write (File => F_Out, Item => Rapport_Site); delay 1.0; Dio.Write (File => F_Out, Item => Rapport_Evenement); Dio.Close (File => F_Out); Text_Io.Put_Line (" Ouverture en LECTURE ... "); Dio.Open (File => F_In, Mode => Dio.In_File, Name => "!machine.devices.terminal_16", Form => ""); Compteur := 256; Text_Io.Put_Line (" FICHIER OUVERT ??? "); Dio.Read (File => F_In, Item => Buf, Count => Compteur); Text_Io.Put_Line (" ENTRER ... Boucle ??? "); for I in 1 .. 30 loop Text_Io.Put (Natural'Image (I)); end loop; Text_Io.Put_Line (" "); Text_Io.Put_Line (" SORTIE ... Boucle ??? "); Dio.Close (File => F_In); Text_Io.Put_Line (" FERMETURE FICHIER ... "); end Ecriture_Sur_Port_16;
nblk1=5 nid=4 hdr6=8 [0x00] rec0=22 rec1=00 rec2=01 rec3=06c [0x01] rec0=25 rec1=00 rec2=02 rec3=024 [0x02] rec0=29 rec1=00 rec2=05 rec3=004 [0x03] rec0=14 rec1=00 rec2=03 rec3=000 [0x04] rec0=07 rec1=00 rec2=02 rec3=000 tail 0x215365a0e85fc567cfaec 0x42a00088462060003 Free Block Chain: 0x4: 0000 00 00 00 0e 80 08 50 6f 72 74 5f 31 36 3b 08 00 ┆ Port_16; ┆