Category:PL/M: Difference between revisions

<lang> tags -> <code> tags and additional notes
(<lang> tags -> <code> tags and additional notes)
Line 20:
Unlike PL/1, PL/M keywords are reserved and so cannot be used as identifiers. The Boolean operators are reserved words: AND, OR and NOT instead of the symbols: &, |, ¬.
<br>
Available datatypes (BYTE, WORD, etc.) reflected the available types of the microprocessors. The original 8008 and 8080 compilers only had BYTE and ADDRESS types - 8 and 16 bit unsigned integers.
<br><br>
The declaration of structures in PL/M does not use level-numbers, instead a syntax more like C structs is used, e.g.:
<lang PLMcode>DECLARE A STRUCTURE ( B BYTE, C WORD );</langcode>
declares a structure A with two members, B and C. Note that structures were not part of the original 8008/8080 PL/M languages.
<br>
<br>
3,037

edits