home *** CD-ROM | disk | FTP | other *** search
File List | 1990-12-27 | 2.9 KB | 123 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,' ');
-
- write (outfile,operand);
- for j := length(operand) to 2 do
- write (outfile,' ');
-
- if (baustein = -1) then
- writeln(outfile,' :')
- else
- begin
- write (outfile,baustein:4);
- if (bitnr = -1) then
- writeln(outfile,' :')
- else
- writeln(outfile,'.',bitnr:1,' :');
- end;
- 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[1] = 'B') or (operation = '=') or
- (operation[1] = 'S') or (operation = 'R') or
- (operation[1] = 'Z') then
- begin
- writeln(outfile);
- ii := succ(ii);
- end;
- end;
- end;
- end;
-
-
- procedure querverweissliste;
-
- var
- op : string[1];
-
- 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 := 0 to maxopr[jj] do
- for i := 1 to anzaw do
- with awl[i] do
- if ((operand[1] = op[1]) and (baustein = ii)) or
- ((operand[1] = 'K') and (operand[2] = op[1]) and (awl[i+1].baustein = ii)) then
- begin
- write (outfile,lr,' ');
- print_awl;
- end;
- end;
- writeln(outfile);
- writeln(outfile,ff);
- end;
-
-
- procedure dokumentation;
-
- begin
- update_filename('ref');
- assign (outfile,filename);
- rewrite(outfile);
- kopf;
- anweisungsliste;
- querverweissliste;
- close (outfile);
- message(mess[3]);
- end;
-