diff --git a/exercises/practice/atbash-cipher/impl.mips b/exercises/practice/atbash-cipher/impl.mips index da4d178..2602d56 100644 --- a/exercises/practice/atbash-cipher/impl.mips +++ b/exercises/practice/atbash-cipher/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write a zero-terminated string representing the return value to address given in a1 + +.globl atbash_cipher + +atbash_cipher: + jr $ra diff --git a/exercises/practice/binary/impl.mips b/exercises/practice/binary/impl.mips index 554446e..9354b5e 100644 --- a/exercises/practice/binary/impl.mips +++ b/exercises/practice/binary/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write integer result to v0 + +.globl binary_convert + +binary_convert: + jr $ra diff --git a/exercises/practice/difference-of-squares/impl.mips b/exercises/practice/difference-of-squares/impl.mips index ccc9239..3ea5fb9 100644 --- a/exercises/practice/difference-of-squares/impl.mips +++ b/exercises/practice/difference-of-squares/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it wants to use s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write integer result to v0 + +.globl difference_of_squares + +difference_of_squares: + jr $ra diff --git a/exercises/practice/grains/impl.mips b/exercises/practice/grains/impl.mips index f39dcdd..862b778 100644 --- a/exercises/practice/grains/impl.mips +++ b/exercises/practice/grains/impl.mips @@ -4,4 +4,9 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it wants to use s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write low word of integer result to v0 -# - write high word of integer result to v1 \ No newline at end of file +# - write high word of integer result to v1 + +.globl square + +square: + jr $ra diff --git a/exercises/practice/hamming/impl.mips b/exercises/practice/hamming/impl.mips index 7b89b8d..3ac8f64 100644 --- a/exercises/practice/hamming/impl.mips +++ b/exercises/practice/hamming/impl.mips @@ -5,3 +5,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write integer result to v0 + +.globl hamming_distance + +hamming_distance: + jr $ra diff --git a/exercises/practice/hello-world/impl.mips b/exercises/practice/hello-world/impl.mips index d232bec..eb1e0b3 100644 --- a/exercises/practice/hello-world/impl.mips +++ b/exercises/practice/hello-world/impl.mips @@ -10,6 +10,5 @@ msg: .asciiz "Goodbye, Mars!" .text hello: - la $v0, msg - - jr $ra + la $v0, msg + jr $ra \ No newline at end of file diff --git a/exercises/practice/hexadecimal/impl.mips b/exercises/practice/hexadecimal/impl.mips index 420a1c3..4d41026 100644 --- a/exercises/practice/hexadecimal/impl.mips +++ b/exercises/practice/hexadecimal/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write integer result to v0 + +.globl hex_convert + +hex_convert: + jr $ra diff --git a/exercises/practice/isbn-verifier/impl.mips b/exercises/practice/isbn-verifier/impl.mips index 526c900..58b8eb0 100644 --- a/exercises/practice/isbn-verifier/impl.mips +++ b/exercises/practice/isbn-verifier/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write boolean result to v0 + +.globl is_valid + +is_valid: + jr $ra diff --git a/exercises/practice/isogram/impl.mips b/exercises/practice/isogram/impl.mips index 349b69b..7785c63 100644 --- a/exercises/practice/isogram/impl.mips +++ b/exercises/practice/isogram/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write boolean result to v0 + +.globl is_isogram + +is_isogram: + jr $ra diff --git a/exercises/practice/leap/impl.mips b/exercises/practice/leap/impl.mips index 6919428..3c3ba86 100644 --- a/exercises/practice/leap/impl.mips +++ b/exercises/practice/leap/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it wants to use s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write boolean result to v0 + +.globl is_leap_year + +is_leap_year: + jr $ra diff --git a/exercises/practice/luhn/impl.mips b/exercises/practice/luhn/impl.mips index faa072b..cf706c6 100644 --- a/exercises/practice/luhn/impl.mips +++ b/exercises/practice/luhn/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write boolean result to v0 + +.globl valid + +valid: + jr $ra diff --git a/exercises/practice/nth-prime/impl.mips b/exercises/practice/nth-prime/impl.mips index 4a285cd..f1d2ab1 100644 --- a/exercises/practice/nth-prime/impl.mips +++ b/exercises/practice/nth-prime/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write integer result to v0 + +.globl nth_prime + +nth_prime: + jr $ra diff --git a/exercises/practice/nucleotide-count/impl.mips b/exercises/practice/nucleotide-count/impl.mips index 4544385..9df2fc6 100644 --- a/exercises/practice/nucleotide-count/impl.mips +++ b/exercises/practice/nucleotide-count/impl.mips @@ -5,3 +5,8 @@ # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write counts for A,C,G,T to the word array with address given in a1 # - write -1 values to the array if the input is invalid + +.globl nucleotide_counts + +nucleotide_counts: + jr $ra diff --git a/exercises/practice/octal/impl.mips b/exercises/practice/octal/impl.mips index 1109972..21d61e6 100644 --- a/exercises/practice/octal/impl.mips +++ b/exercises/practice/octal/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write integer result to v0 + +.globl octal_convert + +octal_convert: + jr $ra diff --git a/exercises/practice/pop-count/impl.mips b/exercises/practice/pop-count/impl.mips index 70f8670..9adce89 100644 --- a/exercises/practice/pop-count/impl.mips +++ b/exercises/practice/pop-count/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it wants to use s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write integer result to v0 + +.globl egg_count + +egg_count: + jr $ra diff --git a/exercises/practice/raindrops/impl.mips b/exercises/practice/raindrops/impl.mips index d6eafed..c7f52d5 100644 --- a/exercises/practice/raindrops/impl.mips +++ b/exercises/practice/raindrops/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write a zero-terminated string representing the return value to address given in a1 + +.globl raindrops + +raindrops: + jr $ra diff --git a/exercises/practice/resistor-color-duo/impl.mips b/exercises/practice/resistor-color-duo/impl.mips index 209dc2b..4353682 100644 --- a/exercises/practice/resistor-color-duo/impl.mips +++ b/exercises/practice/resistor-color-duo/impl.mips @@ -6,3 +6,12 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write integer result to v0 + +.globl value +.globl color_code + +value: + jr $ra + +color_code: + jr $ra diff --git a/exercises/practice/resistor-color/impl.mips b/exercises/practice/resistor-color/impl.mips index df691b8..c286b46 100644 --- a/exercises/practice/resistor-color/impl.mips +++ b/exercises/practice/resistor-color/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write integer result to v0 + +.globl color_code + +color_code: + jr $ra diff --git a/exercises/practice/rna-transcription/impl.mips b/exercises/practice/rna-transcription/impl.mips index 5acdc25..0cbf04d 100644 --- a/exercises/practice/rna-transcription/impl.mips +++ b/exercises/practice/rna-transcription/impl.mips @@ -3,4 +3,9 @@ # - read input address of string from a0 # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) -# - write a zero-terminated string representing the return value to address given in a1 \ No newline at end of file +# - write a zero-terminated string representing the return value to address given in a1# Perform RNA transcription with the rules: + +.globl transcribe_rna + +transcribe_rna: + jr $ra diff --git a/exercises/practice/rotational-cipher/impl.mips b/exercises/practice/rotational-cipher/impl.mips index fdca587..5eab920 100644 --- a/exercises/practice/rotational-cipher/impl.mips +++ b/exercises/practice/rotational-cipher/impl.mips @@ -5,3 +5,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write a zero-terminated string representing the return value to address given in a2 + +.globl rotate + +rotate: + jr $ra diff --git a/exercises/practice/scrabble-score/impl.mips b/exercises/practice/scrabble-score/impl.mips index c998c44..fae3b6d 100644 --- a/exercises/practice/scrabble-score/impl.mips +++ b/exercises/practice/scrabble-score/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write integer result to v0 + +.globl scrabble_score + +scrabble_score: + jr $ra diff --git a/exercises/practice/square-root/impl.mips b/exercises/practice/square-root/impl.mips index 4b28c13..3ab518e 100644 --- a/exercises/practice/square-root/impl.mips +++ b/exercises/practice/square-root/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write integer result to v0 + +.globl square_root + +square_root: + jr $ra diff --git a/exercises/practice/triangle/impl.mips b/exercises/practice/triangle/impl.mips index fe6d94b..7814469 100644 --- a/exercises/practice/triangle/impl.mips +++ b/exercises/practice/triangle/impl.mips @@ -8,3 +8,8 @@ # 1 - isoceles # 2 - equilateral # 3 - invalid triangle + +.globl triangle + +triangle: + jr $ra diff --git a/exercises/practice/trinary/impl.mips b/exercises/practice/trinary/impl.mips index faa7555..1fb208c 100644 --- a/exercises/practice/trinary/impl.mips +++ b/exercises/practice/trinary/impl.mips @@ -4,3 +4,8 @@ # - follow the convention of using the t0-9 registers for temporary storage # - (if it uses s0-7 then it is responsible for pushing existing values to the stack then popping them back off before returning) # - write integer result to v0 + +.globl trinary_convert + +trinary_convert: + jr $ra