From e4e96c7ea69c41b4a1e3f3a52b9ce31df61a9429 Mon Sep 17 00:00:00 2001 From: Danilo Piazzalunga Date: Tue, 9 Jan 2024 11:41:37 +0100 Subject: [PATCH] grains: use the correct output value register (#196) --- exercises/practice/grains/.docs/instructions.append.md | 2 +- exercises/practice/grains/impl.mips | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/practice/grains/.docs/instructions.append.md b/exercises/practice/grains/.docs/instructions.append.md index d231880..d0ca31f 100644 --- a/exercises/practice/grains/.docs/instructions.append.md +++ b/exercises/practice/grains/.docs/instructions.append.md @@ -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 | diff --git a/exercises/practice/grains/impl.mips b/exercises/practice/grains/impl.mips index 2831c10..1fb9830 100644 --- a/exercises/practice/grains/impl.mips +++ b/exercises/practice/grains/impl.mips @@ -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