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

⟦3628f33a0⟧ Ada Source

    Length: 6144 (0x1800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Info, seg_03ddf1

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



with Device_Independent_Io;
with Io;  
with Io_Exceptions;
with System;
with Terminal_Specific;
with Text_Io;  
with Sequential_Io;
with Unchecked_Conversion;
use Io;
use Text_Io;
use Io_Exceptions;

procedure Info 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 : Bs (1 .. 1025);
    B : System.Byte;
    Buf1 : String (1 .. 256);  
    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#04#, 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#04#, 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

    Compteur := 250;

    Dio.Open (File => F_Out,
              Mode => Dio.Out_File,
              Name => "!machine.devices.terminal_16",
              Form => "");

    Dio.Open (File => F_In,
              Mode => Dio.In_File,
              Name => "!machine.devices.terminal_16",
              Form => "");

    Dio.Write (File => F_Out, Item => Horloge_00);
    Dio.Write (File => F_Out, Item => Rapport_Horloge);
    Dio.Write (File => F_Out, Item => Rapport_Evenement);

    Text_Io.Put_Line (" Compteur Avant lecture   = " &
                      Natural'Image (Compteur));

    Dio.Read (File => F_In, Item => Buf, Count => Compteur);
    Dio.Read (File => F_In, Item => Buf1, Count => Compteur);

    -- Text_Io.Put_Line (" Heure  = " & Natural'Image (Natural (Buf (6))));
    -- Text_Io.Put_Line (" Minute = " & Natural'Image (Natural (Buf (7))));
    -- Text_Io.Put_Line (" Jour   = " & Natural'Image (Natural (Buf (8))));

    Text_Io.Put_Line (" Compteur   = " & Natural'Image (Compteur));

    Text_Io.Put_Line (" Buf1 = " & Buf1);


    for I in 1 .. 50 loop
        Text_Io.Put_Line (" Valeur --> " & Natural'Image (Natural (Buf (I))));
    end loop;

    Dio.Close (File => F_Out);
    Dio.Close (File => F_In);

end Info;

E3 Meta Data

    nblk1=5
    nid=2
    hdr6=6
        [0x00] rec0=26 rec1=00 rec2=01 rec3=046
        [0x01] rec0=22 rec1=00 rec2=03 rec3=00a
        [0x02] rec0=19 rec1=00 rec2=05 rec3=000
        [0x03] rec0=18 rec1=00 rec2=02 rec3=000
        [0x04] rec0=07 rec1=00 rec2=02 rec3=000
    tail 0x215369f6085fd64129def 0x42a00088462060003
Free Block Chain:
  0x2: 0000  00 04 00 0a 80 07 3a 3d 20 28 31 36 23 07 08 74  ┆      := (16#  t┆
  0x4: 0000  00 00 00 0e 80 08 50 6f 72 74 5f 31 36 3b 08 00  ┆      Port_16;  ┆