ECE243H1_08SPRING1_338

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: for the instruction), then write 'illegal'. lo wn ad : 69 11 1 er a. ADDI R2, R10, 5 R2 = __0x00101005________ b. ADDI R2, 0x1FACE R2 = __illegal___________ 11 69 1 11691 Downloader ID: R2 = __0xBADFADEA________ ID : c. AND R2, R9, R11 1 69 st Te : ID 11 er ID ad lo : wn 32 Do r 51 R2 = __0x00000001________ lo ad e d. MOVIA R2, 0x1 wn e. ADDI R2, R8, 0xFFFF oader R2 = __0x12345677________ ID: 11691 Downl R2 = __illegal___________ ID 51 st : 51 32 32 Te f. ANDI R2, R9, R10 R2 = __0xFFFF8000________ : ade ID nlo st Te Dow ID : g. ADDI R2, R0, 0x8000 32 1 69 R2 = __0x00101000________ 11 91 116 st 51 r ID: h. AND R2, R8, R10 Te Download er ID: 11691 j. CMPLEU R2, R11, R12 R2 = __0x00000001________ nl oa de r ID R2 = __0xBADFADE2________ : Test ID: 3251 i. ADDI R2, R9, -9 -2 for any wrong No part marks for some digits being right Oxdia @ http://www.oxdia.com Downloader ID: 11691 Downloa der ID: 11691 This test is copyrighted by the uploader and/or course instructor. Test ID: 3251 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. Do w ID : 32 51 ID Do Do st Page 2 of 11 51 32 : ID st Te ID Do wn lo ad : 69 11 Page 3 of 11 1 er Last Name (in case pages get detached):__________________ 51 : 32 ID st Te 2. [15] Memory Operations: Assume the following initial state: 3251 Test ID: R8 = 0x11223344 R9 = 0xFADEABAD R10 = 0x55667788 What is final value of R2 in hexadecimal, using all eight digits (that is write 0x00000000 and not 0x0), after the execution of each sequence of instructions, for both little- and big-endian machines? If any access in the sequence is misaligned, write 'misaligned' instead of an answer. 1 325 t ID: Tes 32 51 STW R9, 0(R8) LDW R2, 0(R8) STB R9, 3(R8) LDB R2, 3(R8) STB R9, 3(R8) LDBU R2, 3(R8) STH R9,1(R8) LDB R2,1(R8) STW R10,0(R8) LDB R2,1(R8) STW R10,0(R8) LDH R2,2(R8) STH R10,2(R8) LDB R2,3(R8) Little-Endian 0xFADEABAD st : ID 32 0x00005566 69 1 0x00000066 0x00007788 11 Misaligned 51 Do wn lo ad e r 51 0x000000AD 0x00000077 ID Te 0x000000AD Misaligned : ID : 51 32 32 51 : : 11 ID ID 0xFFFFFFAD 1 69 : ID er ad lo wn D...
View Full Document

This document was uploaded on 01/28/2014.

Ask a homework question - tutors are online