Summary of Chapter 1
Summary of Chapter 1
Assembly Language
1. Introduction to Computers and Microprocessors
2. Programming Microprocessors
Languages:
o Machine Language: Binary instructions directly executed by hardware.
o Assembly Language:
Low-level language with mnemonics (e.g., ADD, MOV) for better
readability.
Requires an assembler for translation into machine code.
o High-Level Languages:
More human-readable (e.g., Python, C).
Require compilers or interpreters for conversion to machine code.
Language Translators:
o Compiler: Converts high-level code to machine code at once.
o Interpreter: Converts high-level code to machine code line-by-line.
o Assembler: Converts assembly language into machine code.
3. Evolution of Microprocessors
4. Instruction Fields
6. Architectural Compatibility
Key Examples
Assembly Instruction Example:
o MOV AX, 1: Moves the value 1 into register AX.
o Equivalent machine code: 10110000 00000001.
High-Level to Machine Translation:
o High-Level: D = A * B + 10
o Assembly: MOV EAX, A; MUL B; ADD EAX, 10; MOV D, EAX.
Practice Questions
Multiple Choice Questions (MCQs)
1. What is the main component of a microprocessor that performs arithmetic operations?
o A. Registers
o B. ALU
o C. Control Unit
o D. I/O Unit
Answer: B
2. Which language requires translation via an assembler?
o A. Machine Language
o B. Assembly Language
o C. High-Level Language
o D. None of the above
Answer: B
3. The first 32-bit microprocessor introduced by Intel was:
o A. 8086
o B. 80286
o C. 80386
o D. Core i5
Answer: C
4. What is the size of the memory address bus in Intel 8086?
o A. 12 bits
o B. 16 bits
o C. 20 bits
o D. 32 bits
Answer: C
5. Which of the following translates high-level code line by line?
o A. Compiler
o B. Interpreter
o C. Assembler
o D. Linker
Answer: B
True/False
1. Define a microprocessor.
2. Explain the role of the Control Unit in a microprocessor.
3. What are the key differences between machine language and assembly language?
4. Why is backward compatibility important in microprocessor architecture?
5. Describe the evolution of Intel microprocessors from 4004 to 80386.