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

⟦63909b76c⟧ Ada Source

    Length: 2048 (0x800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Figure_Puzzle_Size, seg_005399, separate Puz_Main

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



separate (Puz_Main)  
procedure Figure_Puzzle_Size (Size : String) is  
begin  
    for I in Size'Range loop  
        if Size (I) = 'x' or else  
           Size (I) = 'X' then  
            Puzzle_Width  := S_Natural'Value (Size (Size'First .. I - 1));  
            Puzzle_Height := S_Natural'Value (Size (I + 1 .. Size'Last));  
        end if;  
    end loop;  
    if Puzzle_Width < 4 then  
        Puzzle_Width := 4;  
    end if;  
    if Puzzle_Height < 4 then  
        Puzzle_Height := 4;  
    end if;  
    if Puzzle_Width rem 2 = 1 and then  
       Puzzle_Height rem 2 = 1 then  
        Puzzle_Width := Puzzle_Width + 1;
        -- Puzzle_Size must be a multiple of 2.  One of these two guys
        -- must be even.  This guarantees that.
    end if;  
exception  
    when others =>  
        Text_Io.Put_Line ("Error with Size specification: " & Size);  
        raise;  
end Figure_Puzzle_Size;  

E3 Meta Data

    nblk1=1
    nid=0
    hdr6=2
        [0x00] rec0=1d rec1=00 rec2=01 rec3=000
    tail 0x21500a01a81978951ccfc 0x42a00088462063203