MACRO-11
MACRO-11 is an assembly language with macro facilities, designed for PDP-11 minicomputer family from Digital Equipment Corporation (DEC).[src] It is the successor to Program Assembler Loader (PAL-11R), an earlier version of the PDP-11 assembly language without macro facilities.[src] MACRO-11 was supported on all DEC PDP-11 operating systems.[src] PDP-11 Unix systems also include an assembler (named as), structurally similar to MACRO-11, but with different syntax and fewer features.[src] The MACRO-11 assembler (and programs created by it) could also run under the RSX-11 compatibility mode of OpenVMS on VAX.[src]
--> | typing = Untyped | scope = Lexical | programming language = assembly language | discontinued = Yes | platform = PDP-11 | operating system = All DEC PDP-11 | influenced by = PAL-11R | influenced = VAX MACRO | website = }} MACRO-11 is an assembly language with macro facilities, designed for PDP-11 minicomputer family from Digital Equipment Corporation (DEC).[src] It is the successor to Program Assembler Loader (PAL-11R), an earlier version of the PDP-11 assembly language without macro facilities.[src] MACRO-11 was supported on all DEC PDP-11 operating systems.[src] PDP-11 Unix systems also include an assembler (named as), structurally similar to MACRO-11, but with different syntax and fewer features.[src] The MACRO-11 assembler (and programs created by it) could also run under the RSX-11 compatibility mode of OpenVMS on VAX.[src] ==Programming example== A complete "Hello, World!" program in PDP-11 macro assembler, to run under RT-11: .TITLE HELLO WORLD .MCALL .TTYOUT,.EXIT HELLO:: MOV #MSG,R1 ;STARTING ADDRESS OF STRING 1$: MOVB (R1)+,R0 ;FETCH NEXT CHARACTER BEQ DONE ;IF ZERO, EXIT LOOP .TTYOUT ;OTHERWISE PRINT IT BR 1$ ;REPEAT LOOP DONE: .EXIT MSG: .ASCIZ /Hello, world!/ .END HELLO The .MCALL pseudo-op warns the assembler that the code will be using the .TTYOUT and .EXIT macros.[src] The .TTYOUT and .EXIT macros are defined in the standard system macro library to expand to the EMT instructions to call the RT-11 monitor to perform the requested functions.[src] If this file is , the RT-11 commands to assemble, link and run (with console output shown) are as follows: .MACRO HELLO ERRORS DETECTED: 0 .LINK HELLO .R HELLO Hello, world![src] .[src] (The RT-11 command prompt is " .[src] ") For a more complicated example of MACRO-11 code, two examples chosen at random are Kevin Murrell's KPUN.MAC, or Farba Research's JULIAN routine.[src] More extensive libraries of PDP-11 code can be found in the Metalab freeware and Trailing Edge archives.[src] ==References== ==External links== RSX-11M-Plus RMS-ll Macro Programmer's Guide (April 1983) Michael Singer, PDP-11.[src] Assembler Language Programming and Machine Organization, John Wiley & Sons, NY: 1980.[src]
19 sentences · 19 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"MACRO-11." encyclopegia.org, 2026, https://encyclopegia.org/wiki/macro-11. Accessed 30 November 2026.
Chicago
"MACRO-11." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/macro-11.
APA
encyclopegia.org. (2026). MACRO-11. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/macro-11
Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON