MIPS program辅导、讲解c/c++,Java程序、讲解Java,Python语言
- 首页 >> C/C++编程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 ?