Homework2
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:
111 · · · 1111
where each bit is simply 1.
(1). When I run the instruction add s2, s1, 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 ?
版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。