Jump to content

Conditional assembly language

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Chatul (talk | contribs) at 16:30, 29 August 2021 (Redundant reflist; some macro pseudoops are not conditional assembly pseudoops; open code). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

  1. ^ Much of the language derives from earlier assemblers in, e.g., OS/360 and successors.

References

  1. ^ "Conditional assembly language". www.ibm.com. 2015-06-11. Retrieved 2021-08-29.