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

Aslam o alekum every body yar koi hai jo is ka solution bana dey plz koi to upload kar do aj last day hai. is ka plz plz plz Spring%202011_CS501_2.doc

 

 

 

Instructions

Please read the following instructions carefully before submitting assignment:

It should be clear that your assignment will not get any credit if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file corrupt.
  • The assignment is copied.
  • There is not mentioned the student Id in the assignment or

           name of file is other than student ID

GOOD LUCK

 

 

 

 

 

Question No: 1

Specify the condition for the branch instruction and the status of the PC after the branch instruction executes with a true branch condition.

 

Instruction

Condition

PC status

Jump[20]

 

 

Jnz r3,[33]

 

 

Jz r1,[16]

 

 

Jpl r5,[37]

 

 

Jmi r7,[40]

 

 

 

 

Question No: 2

Marks: 10

 

 

Identify the addressing modes and Register Transfer Language(RTL) description(meaning) for the given Falcon-A instructions

 

Instruction

Addressing Mode

RTL description(meaning)

Load r3,[r5+27]

 

 

Jnz r5,[15]

 

 

Shiftl r3,r2,5

 

 

Add r6,r5,r7

 

 

Subi r4,r3,17

 

 

 

 

Deadline

Your assignment must be uploaded/submitted at or before Monday ,2nd May 2011


+ 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: 130

Replies to This Discussion

Instruction Condition PC status
Jump[20] always PCPC+20
Jnz r3,[33] If R3≠0 PCPC+33
Jz r1,[16] If R1==0 PCPC+16
Jpl r5,[37] If R5≥0 PCPC+37
Jmi r7,[40] If R7<0 PCPC+40
Instruction Addressing Mode RTL description(meaning)
Load r3,[r5+27] Displacement R[3] M[R[5]+27]
Jnz r5,[15] Relative (R[5]≠0): PC PC+15
Shiftl r3,r2,5 immediate Shift r2 left 5 times and store in r3
Add r6,r5,r7 Register R[6]R[5]+R[7]
Subi r4,r3,17 immediate R[4]R[3]-17
See the attached file for solution
Attachments:
Q#01

Specify the condition for the branch instruction and the status of the PC after the branch instruction executes with a true branch condition.

solution

Instruction

Condition

PC status

Jump[20]

Always

PC← PC+20

Jnz r3,[33]

If R[3] ≠ 0

PC← PC+33

Jz r1,[16]

If R[1] = = 0

PC← PC+16

Jpl r5,[37]

If R[5] ≥0

PC← PC+37

Jmi r7,[40]

If R[7] < 0

PC← PC+40

Q#02

Identify the addressing modes and Register Transfer Language(RTL) description(meaning) for the given Falcon-A instructions

solution

Instruction

Addressing Mode

RTL description(meaning)

Load r3,[r5+27]

Displacement

R[3] ← M[R[5] +27]

Jnz r5,[15]

Relative

(If R[5] ≠ 0): PC← PC+15

Shiftl r3,r2,5

Immediate

Shift r3 left 6 times and store in r2

Add r6,r5,r7

Register

R[6] ← R[5] + R[7]

Subi r4,r3,17

Immediate

R[4] ← R[3] -17
Deadline
Your assignment must be uploaded/submitted at or before Monday ,2nd May 2011

RSS

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

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

.