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

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:


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

Attachments:

Replies to This Discussion

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

agr kisi ko confusion hai to bta do :D

jnb  kesi ko pata ho to koe discuss kery na....

:D :P acha ji

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? :(((

RSS

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

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

.