Say that:
Suppose that the MIPS machine runs the following instruction:
lh $t0,0($s0)
Please note MIPS register has 32bit, which means you need to fill in 8 hexadecimal digits in the blank because each hexidecimal digit is equivalent to 4 bits.
PLEASE do some explainations!!
Consider the following MIPS instruction:
lh $t0,0($s0) ; LH - Loading Halfword. Load the 32 - bit sign-extended halfword into $t0 register.
Suppose that memory address 0x10000000 = 0x80
memory address 0x10000001 = 0x00
Register $s0 = 0x10000000
(i) If the MIPS machine is little endian, what will be the 8-digit hexadecimal value in $t0 register:
Answer: $t0 = 0x80000000
(i) If the MIPS machine is Big endian, what will be the 8-digit hexadecimal value in $t0 register:
Answer: $t0 = 0x00000080
Get Answers For Free
Most questions answered within 1 hours.