Conditional assembly language

From Wikipedia, the free encyclopedia
Jump to: navigation, search

A Conditional Assembly Language is that part of an Assembly Language used to write macros.

Example[edit]

In the IBM conditional assembly language, the most important statements are:-

  • MACRO and MEND - used to start and finish a macro
  • AIF, AGO, ANOP, AEND, AEXIT and MEXIT - used to control the generation of different assembly language statements, depending on the nature of the macro’s supplied arguments.
  • SETx - used to manipulate variables within the macro.

Alternative use[edit]

The conditional assembler is not restricted to generating assembler code and was in fact used by IBM in the 1970s onwards to generate COBOL or PL/1 statements for compiling into CICS application programs.