|
|
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: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Msquare, seg_0564cb
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Text_Io;
package body Msquare is
procedure Move (O : Object; X, Y : in out Indice) is
begin
if X = O.Taille then
X := 1;
else
X := X + 1;
end if;
if Y = 1 then
Y := O.Taille;
else
Y := Y - 1;
end if;
while O.M (X, Y) /= 0 loop
if X = 1 then
X := O.Taille;
else
X := X - 1;
end if;
if Y = 1 then
Y := O.Taille;
else
Y := Y - 1;
end if;
end loop;
end Move;
procedure Init (O : in out Object) is
I, J : Integer;
X, Y : Indice;
begin
I := Integer (O.Taille) ** 2;
X := O.Taille / 2;
Y := X + 1;
for J in 1 .. I loop
Move (O, X, Y);
O.M (X, Y) := J;
end loop;
end Init;
procedure Affiche (O : in Object) is
X, Y : Indice;
begin
for Y in 1 .. O.Taille loop
for X in 1 .. O.Taille loop
Text_Io.Put (Integer'Image (O.M (X, Y)) & " ");
end loop;
Text_Io.New_Line;
end loop;
end Affiche;
end Msquare;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=2d rec1=00 rec2=01 rec3=004
[0x01] rec0=0b rec1=00 rec2=02 rec3=001
tail 0x21762339487c43873baf7 0x42a00088462060003