-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move requirements from test to stub file
- Loading branch information
1 parent
6858ff9
commit 19c718c
Showing
47 changed files
with
151 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# atbash_cipher must: | ||
# - be named atbash_cipher and declared as global | ||
# - read input 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# binary_convert must: | ||
# - be named binary_convert and declared as global | ||
# - 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 integer result to v0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# difference_of_squares must: | ||
# - be named difference_of_squares and declared as global | ||
# - read input integer from a0 | ||
# - 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# square must: | ||
# - be named square and declared as global | ||
# - read input integer from a0 | ||
# - 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# hamming_distance must: | ||
# - be named hamming_distance and declared as global | ||
# - read input address of first string from a0 | ||
# - read input address of second string from a1 | ||
# - 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Implement the 'hello' function, which must: | ||
# - write address of string result to v0 | ||
|
||
.globl hello | ||
|
||
.data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# hex_convert must: | ||
# - be named hex_convert and declared as global | ||
# - 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 integer result to v0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# is_valid must: | ||
# - be named is_valid and declared as global | ||
# - 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 boolean result to v0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# is_isogram must: | ||
# - be named is_isogram and declared as global | ||
# - 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 boolean result to v0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# is_leap_year must: | ||
# - be named is_leap_year and declared as global | ||
# - read input integer from a0 | ||
# - 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# valid must: | ||
# - be named valid and declared as global | ||
# - 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 boolean result to v0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# nth_prime must: | ||
# - be named nth_prime and declared as global | ||
# - read prime index 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 integer result to v0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# nucleotide_counts must: | ||
# - be named nucleotide_counts and declared as global | ||
# - read input 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 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# octal_convert must: | ||
# - be named octal_convert and declared as global | ||
# - 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 integer result to v0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# egg_count must: | ||
# - be named egg_count and declared as global | ||
# - read input integer from a0 | ||
# - 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# raindrops must: | ||
# - be named raindrops and declared as global | ||
# - read input value 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# value must: | ||
# - be named value and declared as global | ||
# - read address of first input string from a0 | ||
# - read address of second input string from a1 | ||
# - read address of (possibly empty) third input string from a2 | ||
# - 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# color_code must: | ||
# - be named color_code and declared as global | ||
# - 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 integer result to v0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# transcribe_rna must: | ||
# - be named transcribe_rna and declared as global | ||
# - 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.