Chapter 3 - Assembly and Machine Language-WPS Office
Chapter 3 - Assembly and Machine Language-WPS Office
The Von Neumann architecture is a computer design model that forms the foundation of most modern
computers. It is characterized by the following key components:
Registers: Temporary storage for data and instructions within the CPU.
---
The Control Unit (CU) manages the execution of instructions through the Instruction Cycle:
1. Fetch Phase:
The address of the next instruction is loaded from the Program Counter (PC).
The instruction is fetched from memory and placed in the Instruction Register (IR).
2. Decode Phase:
The instruction is decoded by the control unit to determine the operation and required operands.
3. Execute Phase:
The control signals activate the necessary circuits to perform the operation (e.g., ALU operations,
memory access).
4. Write-Back Phase:
---
Perform arithmetic (ADD, SUB), logical (AND, OR), and shift (SHL, SHR) operations.
2. Control Instructions:
3. Input/Output Instructions:
Example Instructions:
---
Assembly language serves as an interface between machine code and high-level programming
languages.
Key Concepts:
---
Opcode + Operand(s)
---
MOV AX, 5
A subroutine is a reusable block of code invoked using CALL and terminated using RET.
Mechanism:
1. CALL Instruction:
2. Subroutine Execution:
3. RET Instruction:
Example Subroutine:
CALL ADD_NUMBERS
...
ADD_NUMBERS:
MOV AX, BX
ADD AX, CX
RET
---
Summary:
This chapter provides a foundational understanding of how low-level instructions control and manage
computer hardware efficiently.