Conditional assembly language
Appearance
An editor has nominated this article for deletion. You are welcome to participate in the deletion discussion, which will decide whether or not to retain it. |
This article relies largely or entirely on a single source. (August 2021) |
A conditional assembly language is a subset of an assembly language used to conditionally generate code; it can be used both in a macro and in open code.
Example
In the conditional assembly language[1] of the IBM High Level Assembler[a] (HLASM)), some important statements are:
- GBLx, LCLx - used to define compile-time variables
- AIF, AGO, ANOP, AEND and AEXIT - used to control the generation of different assembly language statements, depending on the values of compile-time variables and, within macros, on the macro's supplied arguments.
- SETx - used to manipulate compile-time variables.
Alternative use
The conditional assembler is not restricted to generating assembler code and was used by IBM in the 1970s onwards to generate COBOL or PL/1 statements for compiling into CICS application programs.
Notes
- ^ Much of the language derives from earlier assemblers in, e.g., OS/360 and successors.
References
- ^ "Conditional assembly language". www.ibm.com. 2015-06-11. Retrieved 2021-08-29.