We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

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

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

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Views: 769

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

Latest Activity

+ Ehtisham + liked + !! Ήලᵯᵯℹ Ⲥⱨ !! +'s discussion !!!! !!!!!!
6 hours ago
+ !! Ήලᵯᵯℹ Ⲥⱨ !! + posted discussions
6 hours ago
+!!★彡 Alan Walker彡★✓ liked Ammara Sabir's discussion !!!!!!Muhabbat!!!!!!
6 hours ago
+!!★彡 Alan Walker彡★✓ liked + !! Ήලᵯᵯℹ Ⲥⱨ !! +'s discussion !!!!LIFE !!!!!!
6 hours ago
6 hours ago
6 hours ago
7 hours ago
Anaya liked zohaib iftikhar's discussion ...*ANDHERY MAIN ROSHNI ...*
7 hours ago
7 hours ago
Anaya liked Ammara Sabir's discussion !!!!!!Muhabbat!!!!!!
7 hours ago
Anaya liked + !! Ήලᵯᵯℹ Ⲥⱨ !! +'s discussion !!!!LIFE !!!!!!
7 hours ago
Anaya liked + !! Ήලᵯᵯℹ Ⲥⱨ !! +'s discussion !!!! !!!!!!
7 hours ago

1

2

3

4

5