+ Link For Assignments, GDBs & Online Quizzes Solution |
+ Link For Past Papers, Solved MCQs, Short Notes & More |
Q1.
Part a: 15 marks
Write an SRC assembly language program to evaluate the following expression:
f = 4(k+32) + 16(g-h)
Solution:
Part b: 5 marks
Draw memory map table for the above program using the following scenario and assume that SRC uses 16-bit memory in this case.
.ORG 300 ; start the next line at address 300
k: .DW 1 ;
g: .DW 1 ;
h: .DW 1 ;
f: .DW 1 ;
.ORG 400 ; start the code at address 400
The code starts at address 400 and each instruction takes 16-bits in the memory.
Solution:
Tags:
+ 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)ye lo dear phle question ka complete solution comments ke sath
ld R1, g
kd R2, h
sub R3,R1,R2 ;R3 contains (g-h)
shl R4, R3, 4 ; R4 contains 16(g-h)
ld R5, K
addi R6, R5, 32 ;R6 contains (k+32)
shl R7, R6, 2 ;R7 contains 4(k+32)
add R8,R7, R4 ; R8 contains 4(k+32)+16(g-h)
st R8, f ; store the above result into memory location f
jnb kesi ko pata ho to koe discuss kery na....
SOME BODY, PLZ TELL 100% CORRECT SOLUTION, THERE ARE THREE DIFFERENT SOLUTIONS FOR THESE QUESTIONS, ITS SO CONFUSING
The assignment i uploaded is perfect you can copy it and there is no other solution for the assignment, therefore, checker won't cut your marks feel free to copy it
brother pahly cs401 mai samj ni thi ati iss language ki aor ab iss mai b aor goom gai hon plzz kuch procedure detail se bataiye kese banaty hain ye sab? :(((
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com Page with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post