标签: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.
因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:99515681@qq.com
微信:codinghelp
标签:imu Edito after MIP help programs out nta let
原文地址:https://www.cnblogs.com/returnjava/p/10927050.html