Core Principles of Assemblers and Operating Systems
Assembly Language Fundamentals
Assembly language is a low-level language that uses mnemonic instructions instead of binary code. The assembler translates these instructions into machine language. Assembly language instructions are categorized into three types:
- Imperative Statements (IS): These are executable instructions that perform actual CPU operations and generate machine code. Examples include
STOP,ADD,SUB,MULT,MOVER,MOVEM,COMP,BC,DIV,READ, andPRINT. For example,MOVER AREG, NUMmoves data to a register,ADD AREG, ='5'adds a literal value, andMOVEM AREG, RESULTstores the result in memory. - Declarative Statements (DL): These are used to define data and reserve storage.
DC(Define Constant) allocates memory and stores a constant