Category:Polyglot:PL/I and PL/M: Difference between revisions
Content added Content deleted
(→Implementation: more notes and include files.) |
(→Implementation: Minor simplification) |
||
Line 34: | Line 34: | ||
<br><br> |
<br><br> |
||
* The program will start with <code>n100H: procedure options (main);</code> where the "(main)" starts in column 81. |
* The program will start with <code>n100H: procedure options (main);</code> where the "(main)" starts in column 81. |
||
⚫ | |||
* 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. |
|||
⚫ | |||
* 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. |
* 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. |
* The code that is specific to PL/M will have "/* */" at the end - the "/* */" will terminate before column 81. |
||
Line 48: | Line 47: | ||
As noted above PL/M only has 8 and 16 bit unsigned integers. |
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. |
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=== |
===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. |
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. |