Fall 2023 - CS501 - 1
Fall 2023 - CS501 - 1
Assignment # 01 Deadline
th
15 of November
Fall 2023 2023
Please carefully read the following instructions before attempting the assignment.
You should consult the recommended books to clarify your concepts as handouts are not sufficient.
Images and tables can be inserted using the following highlighted option in the interface.
Topic Covered:
Lecture 1 to Lecture 7
NOTE
No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding
or internet malfunctioning etc.). Hence refrain from uploading assignments in the last hour of the deadline. It is
recommended to upload the solution at least two days before its closing date.
If you people find any mistake or confusion in the assignment (Question statement), please consult with your
instructor before the deadline. After the deadline, no queries will be entertained in this regard.
Write an assembly program to evaluate the expression: Your code should not change the source
operands.
𝑦 = 3(𝑥 + 4) − 2(𝑧 − 7)
Questions No 02 5 marks
For the reverse assemble, convert the following SRC machine language instructions in Hexadecimal,
and mention the mnemonic:
1. 8A000000 h
2. 9C000000 h
Questions No 03 5 marks
a. A computer has a 32-bit address bus and a 16-bit data bus. What is the maximum amount of
memory that can be addressed by this computer? How many bytes of memory can be stored in
this computer’s memory?
b. Identify the instruction type and op-code for the following instructions: