MACRO-11

MACRO-11

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

MACRO-11 поддерживался во всех операционных системах для DEC PDP-11. Операционные системы на основе Unix для PDP-11 также выключают ассемблер (команда as), схожий по структуре с MACRO-11, но с другим синтаксисом.

Пример использования

Программа Hello, world! на MACRO-11 для 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

Если эта программа сохранена в файле HELLO.MAC, то набор команд RT-11 для ассемблирования, связывания и исполнения будет следующим (здесь точка «.» это приглашение командной строки RT-11):

.MACRO HELLO
ERRORS DETECTED:  0
 
.LINK HELLO
 
.R HELLO
Hello, world!
.

Другие примеры

Ссылки


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Полезное


Смотреть что такое "MACRO-11" в других словарях:

  • 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-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 …   Wikipedia

  • 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 — (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


Поделиться ссылкой на выделенное

Прямая ссылка:
Нажмите правой клавишей мыши и выберите «Копировать ссылку»