Skip to content

Commit

Permalink
grains: use the correct output value register (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopiazza authored Jan 9, 2024
1 parent c54c03a commit e4e96c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exercises/practice/grains/.docs/instructions.append.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
| -------- | --------- | ------- | -------------------------------- |
| `$a0` | input | integer | square number in the range 1..64 |
| `$v0` | output | integer | low 32 bits of output |
| `$10` | output | integer | high 32 bits of output |
| `$v1` | output | integer | high 32 bits of output |
| `$t0-9` | temporary | any | for temporary storage |
2 changes: 1 addition & 1 deletion exercises/practice/grains/impl.mips
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# | -------- | --------- | ------- | -------------------------------- |
# | `$a0` | input | integer | square number in the range 1..64 |
# | `$v0` | output | integer | low 32 bits of output |
# | `$10` | output | integer | high 32 bits of output |
# | `$v1` | output | integer | high 32 bits of output |
# | `$t0-9` | temporary | any | for temporary storage |

.globl square
Expand Down

0 comments on commit e4e96c7

Please sign in to comment.