home *** CD-ROM | disk | FTP | other *** search
File List | 1990-02-01 | 2.5 KB | 109 lines |
-
- procedure kopf;
-
- var
- jahr,monat,tag,wtag : word;
-
- begin
- lr := ' ';
- writeln(outfile,ff);
- write (outfile,lr,'Datei : ',filename);
- for i := length(filename) to 28 do
- write (outfile,' ');
- getdate(jahr,monat,tag,wtag);
- writeln(outfile,'Datum : ',tag:2,'.',monat:2,'.',jahr:4);
- writeln(outfile);
- writeln(outfile,lr,'Autor : ___________________________ Version: __.__.__');
- writeln(outfile);
- writeln(outfile,lr,'Anlage: ___________________________');
- writeln(outfile);
- writeln(outfile,lr,' ___________________________');
- writeln(outfile);
- writeln(outfile);
- end;
-
-
- procedure print_awl;
-
- begin
- with awl[i] do
- begin
- write (outfile,' [',i:4,'] ',operation);
- for j := length(operation) to 4 do
- write (outfile,' ');
- if (operand = '') then
- operand := ' ';
- if (kennzahl = -1) then
- writeln(outfile,' :')
- else
- writeln(outfile,operand,kennzahl:5,' :');
- end;
- end;
-
-
- procedure anweisungsliste;
-
- begin
- writeln(outfile);
- writeln(outfile,lr,'STRUKTURIERTE ANWEISUNGSLISTE KOMMENTARE');
- writeln(outfile);
- ii := 1;
- for i := 1 to anzaw do
- begin
- with awl[i] do
- begin
- write (outfile,lr,'[',ii:4,']');
- print_awl;
- if (operation = 'PE') or (operation = '=') or (pos('L',operation) = 2) then
- begin
- writeln(outfile);
- ii := succ(ii);
- end;
- end;
- end;
- end;
-
-
- procedure querverweissliste;
-
- var
- op : string[2];
-
- begin
- writeln(outfile,ff);
- writeln(outfile);
- writeln(outfile,lr,'QUERVERWEISSLISTE AUF ADRESSEN KOMMENTARE');
- for jj := 1 to anzopr do
- if (maxopr[jj] > 0) then
- begin
- op := oprstr[jj];
- writeln(outfile);
- writeln(outfile);
- writeln(outfile,lr,' - ',oprstr[jj]);
- writeln(outfile);
- for ii := 1 to maxopr[jj] do
- for i := 1 to anzaw do
- with awl[i] do
- if (operand[1] = op[1]) and (kennzahl = ii) then
- begin
- write (outfile,lr,' ');
- print_awl;
- end;
- end;
- end;
-
-
- procedure dokumentation;
-
- begin
- update_filename('ref');
- assign (outfile,filename);
- rewrite(outfile);
- kopf;
- anweisungsliste;
- querverweissliste;
- close (outfile);
- message(mess[3]);
- end;
-