MACRO-11

MACRO-11

MACRO-11 is an assembly language with macro facilities for PDP-11 minicomputers from Digital Equipment Corporation (DEC). It is the successor to PAL-11 (Program Assembler Loader), an earlier version of the PDP-11 assembly language without macro facilities.

The MACRO-11 assembly language was designed for the PDP-11 minicomputer family. It was supported on all DEC PDP-11 operating systems. PDP-11 Unix systems also include an assembler (called "as"), structurally similar to MACRO-11 but with different syntax and fewer features.

Programming example

A complete "Hello, world!" program in PDP-11 macro assembler, to run under RT-11:

.TITLE HELLO WORLD .MCALL .TTYOUT,.EXITHELLO:: MOV #MSG,R1 ;STARTING ADDRESS OF STRING1$: MOVB (R1)+,R0 ;FETCH NEXT CHARACTER BEQ DONE ;IF ZERO, EXIT LOOP .TTYOUT ;OTHERWISE PRINT IT BR 1$ ;REPEAT LOOPDONE: .EXIT

MSG: .ASCIZ /Hello, world!/ .END HELLO

If this file is HELLO.MAC, the RT-11 commands to assemble, link and run (with console output shown) are as follows:

.MACRO HELLOERRORS DETECTED: 0

.LINK HELLO

.R HELLOHello, world!.

(The RT-11 command prompt is ".")

For a more complicated example of MACRO-11 code, two examples chosen at random are Kevin Murrell's [http://www.ps8computing.co.uk/PDP11/kpun_mac.htm KPUN.MAC] , or Farba Research's [http://www.farbaresearch.com/examples/julian.htm JULIAN] routine. More extensive libraries of PDP-11 code can be found in the Metalab freeware and Trailing Edge archives. [ [http://www.ibiblio.org/pub/academic/computer-science/history/pdp-11/ Metalab] ] [ [http://pdp-11.trailing-edge.com/ Trailing Edge] ]

References

External links

* [http://computer-refuge.org/bitsavers/pdf/dec/pdp11/rsx11/RSX11M_V2/DEC-11-OIMRA-A-D_MACRO_75.pdf Original documentation (RSX11M_V2)]
* Michael Singer, PDP-11. Assembler Language Programming and Machine Organization, John Wiley & Sons, NY: 1980.


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • macro- — ♦ Élément, du gr. makros « long, grand » (⇒ méga ). ⊗ CONTR. Micro . macr(o) élément, du gr. makros, long, grand . ⇒MACRO , élém. formant Élém. tiré du gr. «grand, long», entrant dans la constr. de termes sav. Anton. micro . A. [Macro caractérise …   Encyclopédie Universelle

  • Macro — may refer to: * Macro (computer science) (for macroinstruction ), a computer science term for a set of instructions that is represented in an abbreviated format. * Macro photography, a type of close up photography * image macro, a picture with… …   Wikipedia

  • macro- — [mækrəʊ ǁ roʊ] prefix very large and concerned with a whole system rather than just part of it: • A number of chapters are devoted to fiscal policy in a macro context. * * * macro UK US /mækrəʊ / prefix ► relating to the whole of something,… …   Financial and business terms

  • MACRO-11 — MACRO 11  язык ассемблера с возможностью макросов, созданный Digital Equipment Corporation (DEC) для миникомпьютеров PDP 11. Он заменил язык PAL 11 (Program Assembler Loader), ранний язык ассемблера для PDP 11 без макросов. MACRO 11… …   Википедия

  • macro — (n.) 1959 in computing sense, shortened from MACRO INSTRUCTION (Cf. macro instruction) …   Etymology dictionary

  • macro — [mak′rō] n. pl. macros [ MACRO(INSTRUCTION)] a single computer instruction that represents a given sequence of instructions; macroinstruction adj. 1. broad, general, or comprehensive in coverage, outlook, etc. or large in scale, effect, etc.… …   English World dictionary

  • macro — a. very large in scale or scope or capability; as, macroeconomics. [WordNet 1.5] …   The Collaborative International Dictionary of English

  • macro — n. [shortened form of macroinstruction] 1. a single computer instruction which symbolizes, and is converted at the time of program execution or by a compiler into, a series of instructions in the same computer language. [WordNet 1.5] 2. A… …   The Collaborative International Dictionary of English

  • macro- — Prefijo que significa grande. Medical Dictionary. 2011 …   Diccionario médico

  • macro — En informática, abreviación de macroinstrucción (‘secuencia de instrucciones que se realizan automáticamente con una sola orden’). Es válido su uso en ambos géneros, con predominio del femenino: «Las macros son la herramienta perfecta para… …   Diccionario panhispánico de dudas

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”