|
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: 5120 (0x1400) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test_Serial_Port, seg_041750
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Device_Independent_Io; with Io; with System; with Terminal_Specific; with Text_Io; with Unchecked_Conversion; with Serial_Port; procedure Test_Serial_Port 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 (1 .. 1024); B : System.Byte; Cnt : Natural; 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#, 20, 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); begin Serial_Port.Open (With_Mode => "Write"); Serial_Port.Put (Horloge_00); Serial_Port.Put (Site_00); Serial_Port.Put (Rapport_Horloge); Serial_Port.Put (Rapport_Site); Serial_Port.Put (Rapport_Evenement); Serial_Port.Close; Serial_Port.Open (With_Mode => "Read"); for I in 1 .. 100 loop Serial_Port.Get (B); Text_Io.Put (Natural'Image (Natural (B))); if Natural (B) = 242 then Text_Io.New_Line; end if; end loop; Serial_Port.Close; end Test_Serial_Port;
nblk1=4 nid=4 hdr6=4 [0x00] rec0=23 rec1=00 rec2=01 rec3=060 [0x01] rec0=26 rec1=00 rec2=02 rec3=000 [0x02] rec0=08 rec1=00 rec2=04 rec3=000 [0x03] rec0=03 rec1=b2 rec2=42 rec3=642 tail 0x21741f600862354fa27de 0x42a00088462060003 Free Block Chain: 0x4: 0000 00 03 00 21 00 00 00 00 00 00 00 15 65 6e 64 20 ┆ ! end ┆ 0x3: 0000 00 00 01 97 80 1e 46 69 6c 65 20 3d 3e 20 46 5f ┆ File => F_┆