Assignment No 2 of Computer Organization and Assembly Language
Assignment No 2 of Computer Organization and Assembly Language
Objective:
The objective of this assignment is to gain a deeper understanding of the underlying hardware
of a computer, its architecture, and how assembly language interacts with the hardware. You
will write assembly programs, analyze CPU architecture, and work with memory
management.
Assignment Tasks:
css
Copy code
if (a > b)
c = a - b;
else
c = b - a;
1. Assembler Tools
o Task 11.1: Download and install an assembler tool (e.g., NASM, MASM, or
any suitable assembler for your architecture). Write, assemble, and run a
simple program on your chosen platform.
o Task 11.2: Explain the steps involved in assembling and linking an assembly
program to produce an executable file.
2. Simulation of CPU Execution
o Task 12.1: Using a CPU simulator (such as a MIPS or ARM simulator), write
a simple program and trace the program's execution cycle (Fetch-Decode-
Execute). Provide a screenshot of the simulator output and explain the results.
Deliverables:
Thanks Students
Najam ul Hassan