Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need all 4 parts answered if possible. 1. A computer that uses little-endian memory format is running a Java program. The compiler arranges a string
Need all 4 parts answered if possible.
1. A computer that uses little-endian memory format is running a Java program. The compiler arranges a string "Java is awesome" to be stored at memory address 0x0004. Suppose the encoding of the English letters and space are the same for ASCII and Unicode; the only difference is the number of bits used per code. What is stored at byte address Ox0006? (0.5 point) 2. Suppose that a C++ int arrayAddresses a[2](-231, 225 y is stored at memory address 0x0014 in little- endian formats. Fill each column with the bits in a byte. The most significant bit within a byte goes top. For example, the leftmost column represents a bit pattern that equals 128ten (0.5 point per word) 3. Normally, the unconditional branches are also called x0014 0x0018 Little- endian format 0 instructions. MIPS Instructions (8 points total) 4. Write/complete the MIPS code for [4a] [4c]. Assume that A and B are int arrays that contain the same number of elements; and variable i is an index into arrays A and B. Use as few instructions as possible. Comment each instruction. (0.5 for comment per question Variables A B len Registers s0 Ss1 $s2 Ss3 $s4 $Sto t1 i Reserved Reserved [4a]. Swap the values of A(0] and B[0]. Use $tl and $t2 to hold the values of A[ 0 ] and B[0 ]. (2 points # Load A[0] to St1 # Load B[01 to $t2 # Store $t2 to A[0], or A[0] = $t2 sw $t2, 0 (Ss0)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started