Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Do all please!! 1. Represent the following signed numbers in 32-bit two's complement: (1). +12, (2). -12. 2. Download Mars, the MIPS simulator, and write

Do all please!!
image text in transcribed
image text in transcribed
1. Represent the following signed numbers in 32-bit two's complement: (1). +12, (2). -12. 2. Download Mars, the MIPS simulator, and write a MIPS program that will print the string Hello on the terminal. Make sure you run the program on the simulator and it actually works. 3. Every register stores 32-bits. Suppose now that the register s1 stores the following 32 bits: where each bit is simply 1. (1). When I run the instruction add s2, 1, s3, what's the value of the number stored in s1 ? (2). When I run the instruction addu s2,s1, s3 instead, what's the value of the number stored in s1? Please print your name! Bonus 1: Each register stores 32 bits. By inspecting the content of a register, can I figure out whether it stores an unsigned number or a signed number? why or why not? Bonus 2: In MIPS, each signed number is in 32 bits. What is the largest signed number and what is the smallest? Bonus 3: In MIPS, the entire memory has 23 bytes and hence each address takes 32 bits (recalling that each memory address points to a byte). Suppose that the register $s1 stores a memory address. I want to obtain a new memory address which is 4 plus the address stored in $s1. Then, the new address is stored in Ss2. Without considering address overflow (the new address is out of the address range), Can I use addiu $s2, Ss1, 4 to compute the new address? Can I use addi Ss2, $s1, 4 to compute the new address? why or why not? You may want to use the following 32-bit memory address 100 00010 to verify your

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

Genomes Browsers And Databases Data Mining Tools For Integrated Genomic Databases

Authors: Peter Schattner

1st Edition

0521711320, 978-0521711326

More Books

Students also viewed these Databases questions

Question

List the components of the strategic management process. page 72

Answered: 1 week ago