Understanding Assembly Language: Instructions and Assemblers
Understanding Assembly Language
Assembly language is a low-level programming language where instructions are written using mnemonic codes rather than binary machine language. An assembler translates these instructions into executable machine code.
Classification of Assembly Instructions
Assembly language instructions are categorized into three primary types:
- Imperative Statements (IS): Specify operations for the processor to perform. These generate executable machine code. Examples include:
STOP,ADD,SUB,MULT,MOVER,MOVEM,COMP,BC,DIV,READ, andPRINT. - Declarative Statements (DL): Used for memory allocation and data definition.
DS(Define Storage) reserves memory locations, whileDC(Define Constant) stores a constant value in memory. - Assembler