Category:Polyglot:PL/I and PL/M: Difference between revisions

→‎Implementation: Minor simplification
(→‎Implementation: more notes and include files.)
(→‎Implementation: Minor simplification)
Line 34:
<br><br>
* The program will start with <code>n100H: procedure options (main);</code> where the "(main)" starts in column 81.
* The procedure header and the declaration of eof will be in lower case except for the final "H" of "100H" - there will be no digits in the procedure name, other than the final "100"
* after the procedure header, a variable called eof will be declared with <code>declare eof fixed binary;</code>.
* The final "end" of the program will be labelled EOF, in upper-case.
* The procedure header and the declaration of eof will be in lower case except for the final "H" of "100H" - there will be no digits in the procedure name, other than the final "100"
* an assignment to EOF will appear immediately before the final "end" of the program - here, EOF will be specified in upper case.
* Code that is specific to PL/M will be commented out by having the opening "/*" of the comment appear in column 81.
* The code that is specific to PL/M will have "/* */" at the end - the "/* */" will terminate before column 81.
Line 48 ⟶ 47:
As noted above PL/M only has 8 and 16 bit unsigned integers.
The PL/M BYTE type is 8 bits and can be used where a character( 1 ) or bit( 1 ) item would be used in PL/I.
 
===Include Files===
PL/I allows file inclusion via the <code>%include</code> statement but the original 8080 PL/M compiler does not support file inclusion so the relevent definitions must be included in each program.
3,022

edits