A, B are two integers arrays. The base address of A and B are in register x10 and x11, respectively. Register x10 holds

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

A, B are two integers arrays. The base address of A and B are in register x10 and x11, respectively. Register x10 holds

Post by answerhappygod »

A, B are two integers arrays. The base address of A and B are in
register x10 and x11, respectively.
Register x10 holds number 8 and register x11 holds number
20.
Variables i and j are in x12, and x13 respectively.
The size of each array element is 4 bytes for both arrays A and
B.
The following holds: B[3*i-4]=A[16 *j-i] + 12;
(all the above assumptions are the same as in the previous
question).
Let's now assume that the machine is Little Endian.
Suppose the data stored in this memory are recycled above PC =
28, i.e., 32 stores 0100FACE, 36 stores 01BAC789 and so on and so
forth. Also, let’s further assume that the low address (low byte
address) is to the left of your memory map.
Let’s further assume that we will store the contents of B[3*i-4]
to register x25, assuming now that i=8 and j=4. What are the
contents of register x25?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply