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

⟦e0b402a07⟧ Ada Source

    Length: 2048 (0x800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Byte_Tools, seg_05b270

Derivation

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

E3 Source Code



package Byte_Tools is
    type Byte_As_Number is new Natural range 16#00# .. 16#FF#;
    for Byte_As_Number'Size use 8;
    type Bit_Number is new Natural range 0 .. 7;
    type Byte_As_Array is array (Bit_Number) of Boolean;
    for Byte_As_Array'Size use 8;

    Null_Byte_As_Array : constant Byte_As_Array := (Bit_Number => False);

    function Test_Bit (Number : in Bit_Number; Of_Byte : in Byte_As_Number)
                      return Boolean;
    procedure Set_Bit_To_1 (Of_Byte : in out Byte_As_Number;
                            The_Bit : in Bit_Number);
    procedure Set_Bit_To_0 (Of_Byte : in out Byte_As_Number;
                            The_Bit : in Bit_Number);
    function To_Array (The_Number : in Byte_As_Number) return Byte_As_Array;
    function To_Number (The_Array : in Byte_As_Array) return Byte_As_Number;
end Byte_Tools;

E3 Meta Data

    nblk1=1
    nid=0
    hdr6=2
        [0x00] rec0=14 rec1=00 rec2=01 rec3=000
    tail 0x2176aa79e89406c50c5e4 0x42a00088462060003