www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# CS501 Assignment 01 Fall 2020 Solution / Discussion Due Date: 30-11-2020

CS501 Assignment 01 Fall 2020 Solution / Discussion Due Date: 30-11-2020

Views: 943

### Replies to This Discussion

Share the Assignment Questions & Discuss Here....

CS501_Assignment_No_01_Solution_Fall_2020

CS501 Complete Solution Assignment#01

CS501-Complete-Solution-Assignment#01

# CS501 Assignment 1 Fall 2020

Assignment Questions are following;

Questions No 01

Write the instructions for both 1-address and 2-address machines to evaluate the following expression.

z = 3x3 - 2y2 + 6xy

Note: x, y and z represent memory locations.

Questions No 02

Reverse assemble the following SRC machine language instructions. You are required to show the complete steps.

1. E8C86000
2. 1A0C0012

CS501 assignment 1 Solution:

Question No 1

Solution

Question No.2

Solution

1. E8C86000
 Hexa E 8 C 8 6 0 0 0 Binary 1110 1000 1100 1000 0110 0000 0000 0000 11101 00011 00100 0010 0000 0000 0000 Op-code ra field rb field 17 bit c1 field instruction shc R3 R4 13Ah=18d

Therefore, the assembly language instruction is

Shc R3,R4,19

1. 1A0C0012
 Hexa 1 A 0 C 0 0 1 2 Binary 0001 1010 0000 1100 0000 0000 0001 0010 00011 01000 00110 00000 0000 0001 0002 Op-code ra field rb field 17bit c1 field Instruction st R8 R6 12h=18d

Therefore, the assembly language instruction is

st R8,R6,18

CS501_Assignment_No_01_Solution_Fall_2020

CS501 Complete Solution Assignment#01

CS501-Complete-Solution-Assignment#01

CS501 Complete Solution Assignment#01

CS501-Complete-Solution-Assignment#01

1

2

3

4

## Latest Activity

7 seconds ago
4 minutes ago
5 minutes ago
8 minutes ago
+ M.Tariq Malik added a discussion to the group ISL201 Islamic Studies

8 minutes ago
11 minutes ago
13 minutes ago
15 minutes ago