Commit c34ceb83 authored by Petr Stepan's avatar Petr Stepan

Correction of asm according to makefile

parent 42458f98
......@@ -23,7 +23,7 @@ vect_next: // do {
lw $2, 0($5) // r2 = *pa
lw $3, 0($6) // r3 = *pb
add $4, $2, $3 // r4 = r2 + r3
sw $4, 0x0($7) // *pc = r4
sw $4, 0($7) // *pc = r4
addi $5, $5, 4 // pa++
addi $6, $6, 4 // pb++
......@@ -39,7 +39,7 @@ vect_next: // do {
beq $0, $0, loop
nop
.org 0x432100
//.org 0x432100
.data
......
......@@ -10,7 +10,6 @@
// int *pa;
// int *pb;
// int *pc;
_start:
main:
......@@ -22,7 +21,7 @@ vect_next: // do {
lw $2, 0($5) // r2 = *pa
lw $3, 0($6) // r3 = *pb
add $2, $2, $3 // r2 = r2 + r3
//sw $2, 0x0($6) // *pa = r2
sw $2, 0($6) // *pa = r2
addi $5, $5, 4 // pa++
addi $6, $6, 4 // pb++
......@@ -37,7 +36,7 @@ vect_next: // do {
beq $0, $0, loop
nop
.org 0x432100
//.org 0x432100
.data
......
......@@ -9,8 +9,6 @@
.text
// int *pa;
// int *pb;
// int *pc;
_start:
main:
......@@ -20,7 +18,7 @@ loop:
vect_next: // do {
lw $2, 0($5) // r2 = *pa
addi $2, $2, 1 // r2 = r2 + 1
sw $4, 0x0($7) // *pa = r2
sw $2, 0($5) // *pa = r2
addi $5, $5, 4 // pa++
addi $8, $8, -1 // i--
......@@ -34,7 +32,7 @@ vect_next: // do {
beq $0, $0, loop
nop
.org 0x432100
//.org 0x432100
.data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment