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

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


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

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

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 769

Replies to This Discussion

Share the Assignment Questions & Discuss Here.... 

Download attachment for CS501 assignment 1 solution file in MS Word.

CS501_Assignment_No_01_Solution_Fall_2020

CS501 Complete Solution Assignment#01

Click on the below link to download the file

CS501-Complete-Solution-Assignment#01

CS501 Assignment No 1 Solution 100% Correct Fall 2020

CS501 Assignment 1 Fall 2020

Assignment Questions are following;

Solution is required please! 

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

1-Address

2-Address

lda 6            load 6 to accumulator

mula x         multiply x with accumulator

mula y         multiply y with accumulator

sta s            store in s

lda 2           load 2 to accumulator

mula y        multiply y with accumulator

mula y        multiply y with accumulator

adda s        add s to accumulator

lda 3          load 3 to accumulator

mula x       multiply x with accumulator

mula x       multiply x with accumulator

mula x       multiply x with accumulator

suba s        subtract accumulator from s

sta z

load s, 3

mul s, x

mul s, x

mul s, x

load t, 2

mul t, y

mul t, y

sub s, t

load u, 6

mul u, x

mul u, y

add s, u

store z, s

 

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

Download attachment for CS501 assignment 1 solution file in MS Word.

CS501_Assignment_No_01_Solution_Fall_2020

CS501 Complete Solution Assignment#01

Click on the below link to download the file

CS501-Complete-Solution-Assignment#01

CS501 Complete Solution Assignment#01

Click on the below link to download the file

CS501-Complete-Solution-Assignment#01

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.