Assembly language

From Computer History Wiki
Revision as of 13:01, 20 December 2024 by Jnc (talk | contribs) (Avoid redir)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Assembly language (short form assembler) is a programming language which is a human-readable form of the machine's basic object code. Rather than being in binary (expressed in whatever base), it instead uses mnemonics to indicate the instructions (e.g. 'ADD'), along with other fields to indicate the operands for each instruction (e.g. 'SP').

A program called an assembler converts the source code to binary object code. Assemblers usually also provide for symbolic labels for the locations at which various instructions will be stored in main memory, so that transfer-of-control instructions can give their destinations symbolically. In addition to being more readable, this also means that such instructions don't need to be modified as the program is changed (changing the absolute addresses at which their targets reside).

A more advanced program for writing in assembler is a macro assembler, which is an assembler enhanced to provide macros.

See also