CS-501 Assignment No 1 Spring 2018 Solution
Here is the solution of assignment no 1 of CS-501 "Advance Computer Architecture" . I am sharing a jpg of solved assignment question but if you want to get docx file then click the link given below
|
How to Download the File : Watch video below to see the steps to download file
Instructions
Steps 1: Click at link given above
2: Enter Captcha Code
3: Wait for 8 Seconds
4: Click at Link Generated below the captcha box
5: That's it. You have downloaded
Note: We guarantee you that our site is 100% Malware and virus free so please Please Disabled your Ad-blocker to Download the file from our site..
|
If you still facing any problem then please let me know about your problem regarding downloading file and leave a comment below because your feed back is very important to us to make our website more reliable and useful.
Explanation of Solution:
Note: If you need Microsoft Word File then please visit the link given above.
Questions No 01
Write the SRC Assembly language program to evaluate the Equation
with appropriate directives.
Z= 16(a-18)+25(b+c)
Answer:
.ORG 200 ; Start the next line
at address 200
a: .DW
1 ;
reserve one word for the label a in the memory
b: .DW
1 ;
reserve a word for b, this will be at address 204
c: .DW
1 ;
reserve a word for c, this will be at address 208
x: .DW
1 ;
reserve a one word for the final result 212
.ORG 400 ; start the program
code at address 400
ld R1, b ; b is a label used for memory location
ld R2, c ; c is a label
used for memory location
addi R3, R1, R2 ; now R3 register
contain (b+c)
mul R4, R3, 5 ; R4 contain 25(b+c)
ld R5, a ; a is a label
used for memory location
sub R6, R5, 18 ; R6 register contains
this expression (a-18)
mul R7, R6, 4 ; R7 register contains
this expression 16(a-18)
addi R8, R7, R4 ; R8 register contains final expression
16(a-18) + 25(b+c)
st R8, x ; Now store the
final result in memory location at (X)
Questions No 02
Identify the addressing modes of the following:
1. R4
2. Jump 8
3. M[R5]+d
4. M[R[6]+50]
5. M[R2]
6. lda [23]
Which
of the above given addressing modes are supported by FALCON-A and FALCON-E processors?
Please get in touch with us for solution of other assignments keep visiting www.infopalaces.blogspot.com
0 Comments