assembly language summary
assembly language summary
High-level languages reduced assembly use but it is still relevant in system programming.
Example:
[org 0x0100]
add ax, bx ; AX = AX + BX
Key Sections:
target:
mov ax, bx
Example:
Here’s a summarized version of the key topics from Weeks 5 to 8 for your exams:
1. Instruction Formats
Types:
Zero-address (stack-based)
Special Purpose Registers: Includes Program Counter (PC), Instruction Register (IR), Memory Address Register (MAR),
and Accumulator (AC).
Stack Pointer (SP): Manages the function call stack.
1. Assembly Linking
Types:
Covers Relative Addressing (jump instructions), Base Register Addressing, and Indexing for efficient data retrieval.
2. Assembler Directives
1. Instruction Sets
3. Loading & Execution: The program is loaded into memory and executed.
First Pass:
Second Pass:
Less efficient.