DataMuseum.dk

Presents historical artifacts from the history of:

RC4000/8000/9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC4000/8000/9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦a5f59e322⟧ TextFile

    Length: 768 (0x300)
    Types: TextFile
    Names: »tlist«

Derivation

└─⟦667bb35d6⟧ Bits:30007480 RC8000 Dump tape fra HCØ.
    └─⟦4334b4c0b⟧ 
        └─⟦this⟧ »tlist« 

TextFile

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◀