码迷,mamicode.com
首页 > 其他好文 > 详细

CSE/EEE 230 Assignment

时间:2019-05-26 19:44:44      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:imu   Edito   after   MIP   help   programs   out   nta   let   


CSE/EEE 230 Assignment 2
Due May 28 (11:59PM)
This assignment is designed to introduce you to the MIPS assembly language and the MIPS simulator.
For this assignment, you are restricted to the following instructions. Do not use extended (pseudo)
instructions or other instructions.
add
sub
addi
a. Open the text editor and type in the following. Then save your work as “assign2.asm”.
.data
.globl main
.text
main:
c. Add the MIPS assembly language instructions (after main:) to complete the following steps. Do not skip
steps. The $s registers must have the correct values at the end. Use other registers as needed.
Actions:
1. Initialize $s0 to 20
2. Initialize $s1 to 30
3. Initialize $s2 to -2
4. Set $s3 to $s1 - $s0 + $s2
5. Set $s4 to $s3 - $s2 + 10
6. Set $s5 to 5 + $s1 -$s2
7. Exchange or swap the values in $s0 and $s1
8. Set $s2 to -$s2
Specifics:
Test and check your work. The results in the registers must be correct at the end of the execution.
Your program will stop when it runs out of instructions.
Documentation:
Comment the beginning of your programs with your name, class ID, and assignment number.
Comment every instruction.
Assignment 2 submittal:
Upload your assembly language program (.asm file) using the link on the website.
Be sure to click on the submit button.

http://www.daixie0.com/contents/3/3118.html

CSE/EEE 230作业代做、代写MIPS simulator作业、代写Python/Java编程设计作业
CSE/EEE 230 Assignment 2
Due May 28 (11:59PM)
This assignment is designed to introduce you to the MIPS assembly language and the MIPS simulator.
For this assignment, you are restricted to the following instructions. Do not use extended (pseudo)
instructions or other instructions.
add
sub
addi
a. Open the text editor and type in the following. Then save your work as “assign2.asm”.
.data
.globl main
.text
main:
c. Add the MIPS assembly language instructions (after main:) to complete the following steps. Do not skip
steps. The $s registers must have the correct values at the end. Use other registers as needed.
Actions:
1. Initialize $s0 to 20
2. Initialize $s1 to 30
3. Initialize $s2 to -2
4. Set $s3 to $s1 - $s0 + $s2
5. Set $s4 to $s3 - $s2 + 10
6. Set $s5 to 5 + $s1 -$s2
7. Exchange or swap the values in $s0 and $s1
8. Set $s2 to -$s2
Specifics:
Test and check your work. The results in the registers must be correct at the end of the execution.
Your program will stop when it runs out of instructions.
Documentation:
Comment the beginning of your programs with your name, class ID, and assignment number.
Comment every instruction.
Assignment 2 submittal:
Upload your assembly language program (.asm file) using the link on the website.
Be sure to click on the submit button.

因为专业,所以值得信赖。如有需要,请加QQ99515681 或邮箱:99515681@qq.com 

微信:codinghelp

CSE/EEE 230 Assignment

标签:imu   Edito   after   MIP   help   programs   out   nta   let   

原文地址:https://www.cnblogs.com/returnjava/p/10927050.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!