|
|
DataMuseum.dkPresents historical artifacts from the history of: RC4000/8000/9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC4000/8000/9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 768 (0x300)
Types: TextFile
Names: »tlist«
└─⟦667bb35d6⟧ Bits:30007480 RC8000 Dump tape fra HCØ.
└─⟦4334b4c0b⟧
└─⟦this⟧ »tlist«
listtest=pascal list.yes
program listtest(output);
type
link=^list;
list=record
no: integer;
next: link;
end;
var
head,p,pt: link;
i,j,n: integer;
begin
head:=nil;
for i:=1 to 10 do
begin
new(p);
with p^ do
begin
no:=i;
next:=head;
end;
head:=p;
end;
pt:=head;
for i:=1 to 10 do
begin
j:=firstaddress(pt^);
writeln('no ',pt^.no,j,ord(pt));
pt:=pt^.next;
end;
end.
;
listtest
▶EOF◀