Oxdiacom 3251 test id this test is copyrighted by the

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: t;. 1 325 t ID: Tes 1 er ID: 1169 load Down Dow ade movia cmplt addi beq beq 91 r ID: r2, r3, r2, r3, r0, addi add beq 116 nlo 0x10 r4, r2 r0, 0x1 r2, ZIP0 r0, ZIP1 r4, r0, 20 r5, r5, r4 r0, r0, ZIP2 ID : 32 51 ZIP0: 11 wn lo ad er ID : 11 69 1 r4, r0, 20 r6, r6, r4 ID addi sub 69 1 Do : st ZIP1: r ZIP2: 1 er ID: 1169 load Down r0, r5, r6 wn lo ad e sub Do MODIFIED CODE: t ID: 325 1 st Te : ID ID : 11 Te 69 1 st 51 32 cmplti r3, r4, 0x10 addi r4, r0, 20 addi r2, r0, 0x1 bne r3, r0, ZIP0 ID : 32 Tes 51 # write your code below this line sub r6, r6, r4 br ZIP2 Te st 32 51 Do w ID : nl oa de r ZIP1: ZIP0: add r5, r5, r4 ZIP2: st Te : ID 51 32 51 -1 at -2 -2 -2 -1 : 32 for any register that does not have the correct value the end if the last sub is not removed if the two branches are not reduced to one if the movia is not reduced to one instruction if addi r2,r0,0x10 is used instead of cmplti ID st Te Downloa Downloader ID: 11691 Oxdia @ http://www.oxdia.com Do This test is copyrighted by the uploader and/or course instructor. wn lo ad er ID : 11 69 1 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. 11691 der ID: Downloader ID: 11691 1 91 116 nlo ade r ID: Dow Page 10 of 11 Last Name (in case pages get detached):__________________ 51 : 32 ID st Te Te st ID : Te st ID : 32 51 32 51 Te st ID : 32 51 7. [10] Calling Conventions: Write the code for the following function: Te st ID : 32 51 int useful (void) { return vip (11, 0x11, 20, 0xaa, &arr[0], &brr[0]); } Do wn lo ad : ID er : 1 69 11 er ad lo wn 11 69 1 Do Te st ID : 32 51 ID Test ID: Test ID: 3251 3251 91 r ID: ade 116 nlo Dow where the first four arguments are 32-bit signed integers, while the last arguments refer to arrays of characters. Assume that the arrays “arr” and “brr” have been declared using labels as follows: oader ID: 11691 Downl Tes t ID: 325 1 st ID : 32 51 .data arr: .string “I’m a...
View Full Document

This document was uploaded on 01/28/2014.

Ask a homework question - tutors are online