Wn lo ad er id 11 69 1 downloader id is shown and also

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: nice string” brr: .byte 0x1, 0x2, 0x3, 0x4 69 1 .section .text .global useful useful: addi sp, sp, -12 stw ra, 8(sp) movia r2, brr stw r2, 4(sp) movia r2, arr std r2, 0(sp) movi r7, 0xaa movi r6, 20 movi r5, 0x11 movi r4, 11 call vip ID : 11 Test ID: 3251 Do wn lo ad e r Test ID: 3251 51 Test ID: 3251 32 Downloader ID: 11691 I er ad lo wn Do 11 Te 69 1 st ID : Do wn lo er ad ID : 69 : 11 ID 1 69 : de nl oa Do w lo wn ad er ID : : 32 51 1 ID 69 11 st Test ID: 3251 Test ID: 3251 Te st ID : 32 51 Oxdia @ http://www.oxdia.com Te st ID : 32 51 r er ad lo wn Do -1 for any parameter that is not passed correctly through the registers -1 if passing parameter via stack, but value not initialized correctly -1 for any other error -2 if ra is not saved and restored -1 if ra saved/restored, but using 0(sp) instead of 8(sp) Do Te 1 11 ID ldw ra, 8(sp) add sp, sp, 12 ret This test is copyrighted by the uploader and/or course instructor. 11691 Downloader ID: Downloader id is shown and also encrypted throughout the document. Unauthorized reproduction/distribution is strictly prohibited. Solution (if any) is NOT audited, so use at your discretion. 1 325 t ID: Tes ID Te : 32 51 st Page 11 of 11 Last Name (in case pages get detached):__________________ 32 51 ID : Te st oader implements a bit-wise exclusive or. For example: Downl ader ID: 11691 ID: 11691 8. [5] Using Assembly to Optimize Operations: The XOR instruction Downlo XOR R1, R2, R3 1 69 11 : ID er ad lo wn Do computes r1 = r2 bit-wise xor r3. : 32 51 1 st er : 69 ID Te ad 1 lo 11 69 Do ID : ID er wn Do wn lo ad 11 If R8 = N and R9 = M where N and M are binary quantities, what will be in R8 and R9 after the following three instructions are executed? Simplify the result values as much as you can. st ID : 32 51 : ID st Te 32 51 XOR R8, R8, R9 XOR R9, R9, R8 XOR R8, R8, R9 Do wn lo ad er ID : 11 69 1 ID : 11 69 1 R8 = M R9 = N Dow ad e r 5 if the above are shown ade nlo r ID: 91 116 11691 der ID: ID: 11691 ID: 3251 Test Downloa ID: 3251 Do Test wn Downl oader lo 2 if the correct formula is reported for r8 and r9 as a function of N and M but is not simplified er : ID Do w nl oa de r ID : 1 69 11 11691 ader ID: Downlo Oxdia @ http://www.oxdia.com This test is copyrighted by the uploader and/or course instructor. wn Do er ad lo Downloader id is shown and also encrypted throughout the document. : ID 1 69 11 Unauthorized reproduction/distribution is strictly prohibited. Solution (if any) is NOT audited, so use at your discretion. 1 11 ID: 11691 ad lo wn Do Te Downloader 69 st ID : 32 51 0 otherwise...
View Full Document

Ask a homework question - tutors are online