Question: ITDR2102 - Computer Organization - FL20 Project2 15 Marks Assembly Language Submission Deadline: (Late submission: 10-40% discount of your mark) Instructions: 1. The project team



ITDR2102 - Computer Organization - FL20 Project2 15 Marks Assembly Language Submission Deadline: (Late submission: 10-40% discount of your mark) Instructions: 1. The project team could be 1 or 2 students only. 2. In this project you have to write three Assembly language programs and run it using GNUSim8085 simulator. 3. To download and use the GNUSim8085 refer to Lab4 and Labs in the lab book. 4. To be able to write the programs, you should watch the video presentation of lectures 11&12 which are available on the course YouTube channel and also read and understand the tutorials answers of tutorials 11&12 which are available on Blackboard. 5. After writing the program of each question on the simulator, you have to video record the running and testing of the program. 6. Create a folder and store the following files in it then compress it and send it by e-mail with subject as ITDR2 102-Project2": a. This file after filling the ID and name of the team members and filling the table of each question. NS 1-2 OF O e b. The three assembly language programs. c. The video presentations of the three questions (could be one video or three separate videos). 01. (5 Marks A) Write and Run the Assembly language instructions to do the following: Load two numbers from input ports (1,2), and compare these two inputs: If both inputs are equal then put 3 into register C, otherwise load 5 to the accumulator. B) Fill the following table after your code is successfully executed for three different cases of input Case Port 1 Port 2 Register A Register C Flag s Flag z 1 2. 3 Q2. [5 Marks] A) Write and Run the Assembly language instructions to do the following: 1.Load the value 1 to register B and the value 2 to register C and load some value to memory location whose address is 10. 2. Read the value stored in memory location whose address is 10 and do the following: - if the value is less than 8 then add 4 to register B. -If the value is greater than 8 then add 5 to register C. -If the value is equals to 8 then load the value 3 to memory location whose address is 11. B) Load three different values to memory location whose address is 10 (first value should be less than 8, the second value should be greater than 8 and the third value is 8) then then fill the following table after your code is successfully executed for three different cases of input: Memory Memory Case Register A location 10 Register B Register C Flags Flag z location 11 1 2 3 Q3. [5 Marks] A) Write and Run the Assembly language instructions to do the following: 1 Load some value to the memory location whose address is 4, and load the value 1 to register B. 2. Read the value stored in memory location whose address is 4 and check it: if the value is less than or equals to 0 then load the value 0 to register B. If the value is greater than 0 then repeat increment the value of register B by 1 until it reaches the value 10. B) Load two different values to memory location whose address is 4 (the first value should 0, the second value should be greater than 0) then then fill the following table after your code is successfully executed for two different cases of input: Case Memory Register A location 4 Register B Flags Flag z 1 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
