aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsnuffick <aleks.bae@gmail.com>2015-10-21 17:12:11 +0300
committersnuffick <aleks.bae@gmail.com>2015-10-21 17:12:11 +0300
commit6deb249cc7c5e71639b300a55927f320b28d5e2e (patch)
tree8f00926b821bb758967b01d9e4aad49c5673a703
parent8ffeebb76b0ef25292741ea027f6e2d429949a12 (diff)
downloadMIPSLabs-6deb249cc7c5e71639b300a55927f320b28d5e2e.zip
MIPSLabs-6deb249cc7c5e71639b300a55927f320b28d5e2e.tar.gz
MIPSLabs-6deb249cc7c5e71639b300a55927f320b28d5e2e.tar.bz2
Update test.asm
-rw-r--r--sw/test.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/test.asm b/sw/test.asm
index 6a8a29d..338067d 100644
--- a/sw/test.asm
+++ b/sw/test.asm
@@ -7,12 +7,12 @@
.text /* code goes to text section*/
.ent entry
entry:
- lw $t0, 0x1000 /* t0 = 1*/
- sw $t0, 0x1002
+ lw $t0, 0x1000 /* t0 = 1*/
+ sw $t0, 0x1002
lw $t1, 0x1001 /* t1 = 1*/
- lw $t1, 0x1000 /* t0 = 1*/
+ lw $t1, 0x1000 /* t0 = 1*/
add $t0, $t0, $t1 /* t0 = t0 + t1 = 2*/
- sw $t0, 0x1200
+ sw $t0, 0x1200
add $t0, $t0, 0xB /* t0 = t0 + 0xB == 0xD*/
sub $t0, $t0, $t1 /* t0 = t0 - $t1 == 0xC*/
or $t0, $t0, 0x10 /* t0 = t0 | 0x10 == 0x1C*/