KEMBAR78
Solution CS301-hw2 | PDF | Computer Program | Programming
0% found this document useful (0 votes)
33 views1 page

Solution CS301-hw2

The document summarizes an assignment for a course on microprocessors and assembly language. It includes questions about the program counter register, instruction register, and fetch-execute process. It also discusses advantages of assembly language programming, like fine-grained control, and advantages of high-level languages, like ease of use and maintainability. Finally, it asks students to match descriptions of computer science terms to their definitions.

Uploaded by

atheerm214
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views1 page

Solution CS301-hw2

The document summarizes an assignment for a course on microprocessors and assembly language. It includes questions about the program counter register, instruction register, and fetch-execute process. It also discusses advantages of assembly language programming, like fine-grained control, and advantages of high-level languages, like ease of use and maintainability. Finally, it asks students to match descriptions of computer science terms to their definitions.

Uploaded by

atheerm214
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CS 301

Microprocessors and Assembly Language

Assignment # 2
1. (3 pts) Briefly describe the main functionality of the program counter register (PC), the instruction
register (IR), and the fetch-execute process in a computer.

- The main functionality of the Program Counter (PC) register: It holds the address of the next instruction to
be executed in the computer.
- The functionality of the Instruction Register (IR): It holds the current instruction being executed in the
computer.
- The fetch-execute process: It refers to the computer's process of fetching instructions from memory and
executing them in a sequential manner. The PC register and the IR are used in this process to determine and
fetch the next required instruction from memory.

2. (2.5 pts) Describe two advantages for programming in assembly and two advantages for
programming in a high-level language.
Advantages of programming in assembly:
1. Fine-grained control: Assembly language provides a higher level of control and direct access to internal components
of the computer, such as registers and memory addresses.
2. Efficiency: Assembly programs can achieve high performance and efficient resource utilization, as they can execute
instructions written in assembly language quickly and effectively.

Advantages of programming in a high-level language:


1. Ease of use: High-level programming languages provide a higher level of abstraction and expressiveness, making it
easier to understand and write programs.
2. Maintainability: High-level language programs can be easier to maintain, as they offer a more organized and
modifiable codebase, facilitating debugging and error correction.

Q.4. (4.5 pts) Find the word or phrase from the list below that best matches the description in the following
questions. Each answer should be used only once.

Control Transistor Wafer Assembler Embedded system

Cache DRAM Instruction set architecture Abstraction

Yield Datapath Defect


a) Approach to the design of hardware or software. The system consists of layers, with each lower layer hiding
details from the level above. Abstraction.

b) Computer inside another device used for running one predetermined application or collection of software.
Embedded system.
c) Interface that the hardware provides to the low-level software. Instruction set architecture.
e) Microscopic flaw in a wafer. Defect.
f) Percentage of good dies from the total number of dies on the wafer. Yield.
h) Thin disk sliced from a silicon crystal ingot, which will be later divided into dies. Wafer
i) Component of the processor that performs arithmetic operations. Datapath
j) Component of the processor that tells the datapath what to do according to the instructions of the program.
Control
n) Program that converts symbolic versions of instructions into their binary formats.
Abstraction. Assembler.

You might also like