Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3: The hexadecimal number table is below (the hexadecimal numbers generally begin with Ox); Hex Binary Hex Binary Hex Binary Hex Binary Ox0 0000

image text in transcribed

Problem 3: The hexadecimal number table is below (the hexadecimal numbers generally begin with "Ox"); Hex Binary Hex Binary Hex Binary Hex Binary Ox0 0000 Ox4 0100 0x8 1000 OxC 1100 Ox1 0001 Ox5 0101 Ox9 1001 OxD 1101 Ox2 0010 Ox6 0110 OxA 1010 OxE 1110 Ox3 0011 Ox7 0111 OxB 1011 OxF 1111 Consider two variants of the MIPS processor: Var A has memory arranged in Little Endian while Var B has it arranged in Big Endian. Part of memory is shown in sketch below. Address Ox00000111 0x00000110 Ox0000010F Ox0000010E 0x0000010D Ox0000010C 0x0000010B 0x0000010A Ox00000109 Ox00000108 0x00000107 Ox00000106 0x00000105 Ox00000104 Data Value 0x00 OxA0 Ox89 Ox77 OxF1 OxEF OxBE Ox43 Ox5F OxA1 Ox2c Ox34 Ox44 Ox56 a) Write MIPS language code that does the following for Var A processor (Assume register $58 contains 0x00000000): 1. Copies the data from memory location beginning in green slot and stores it in register $80. Show the contents of $s 0. 2. The register $50 is stored in memory location starting with blue slot. Show the final memory contents. Use only the instructions that we have so far learned in class (until Lecture 3). b) Repeat (a) for Var B processor Problem 3: The hexadecimal number table is below (the hexadecimal numbers generally begin with "Ox"); Hex Binary Hex Binary Hex Binary Hex Binary Ox0 0000 Ox4 0100 0x8 1000 OxC 1100 Ox1 0001 Ox5 0101 Ox9 1001 OxD 1101 Ox2 0010 Ox6 0110 OxA 1010 OxE 1110 Ox3 0011 Ox7 0111 OxB 1011 OxF 1111 Consider two variants of the MIPS processor: Var A has memory arranged in Little Endian while Var B has it arranged in Big Endian. Part of memory is shown in sketch below. Address Ox00000111 0x00000110 Ox0000010F Ox0000010E 0x0000010D Ox0000010C 0x0000010B 0x0000010A Ox00000109 Ox00000108 0x00000107 Ox00000106 0x00000105 Ox00000104 Data Value 0x00 OxA0 Ox89 Ox77 OxF1 OxEF OxBE Ox43 Ox5F OxA1 Ox2c Ox34 Ox44 Ox56 a) Write MIPS language code that does the following for Var A processor (Assume register $58 contains 0x00000000): 1. Copies the data from memory location beginning in green slot and stores it in register $80. Show the contents of $s 0. 2. The register $50 is stored in memory location starting with blue slot. Show the final memory contents. Use only the instructions that we have so far learned in class (until Lecture 3). b) Repeat (a) for Var B processor

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions