Question: Memory (a) Show using the tables below how the value 0xF3AB440C would be arranged in memory of a little-endian and a big-endian machine. Assume the

  1. Memory

(a) Show using the tables below how the value 0xF3AB440C would be arranged in memory of a little-endian and a big-endian machine. Assume the data are stored starting at address 4 and that the word size is 4 bytes.

Big endian little endian

address

data

0

4

8

12

16

Address

Data

0

4

8

12

16

Address

Contents

0x0000000F

0x00

0x00000010

0x00

0x00000011

0x00

0x00000012

0xAA

0x00000013

0xCC

0x00000014

0x88

0x00000015

0x99

0x00000016

0x11

0x00000017

0x23

0x00000018

0x45

0x00000019

0x00

0x0000001A

0xFF

0x0000001B

0x00

0x0000001C

0xAA

0x0000001D

0xBB

0x0000001E

0x1C

0x0000001F

0x2F

0x00000020

0x55

0x00000021

0x44

0x00000022

0xFB

(b) Based on the given memory map, what is the result of the LEGv8 instruction LDUR X1, [X3, #4] if the machine is in little-endian byte orders, where X3 = 0x00000010. (i.e. what is the value of X1).

X1 = ___________

(c) Show on the memory map the result of the following instruction

STUR X2, [X0, #-8]

where X0 = 0x0000001C, X2 has the value of 0xFFEE00A80C003352 (i.e. show the content changes of the corresponding memory cells). Assume that this is a big endian machine.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!