Skip to content

Commit

Permalink
Use consistent naming for string termination character (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Nov 9, 2023
1 parent e666bbd commit 09255ed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion exercises/practice/atbash-cipher/impl.mips
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# - 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
# - write a null-terminated string representing the return value to address given in a1

.globl atbash_cipher

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/raindrops/impl.mips
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# - 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
# - write a null-terminated string representing the return value to address given in a1

.globl raindrops

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/rna-transcription/impl.mips
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# - 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# Perform RNA transcription with the rules:
# - write a null-terminated string representing the return value to address given in a1# Perform RNA transcription with the rules:

.globl transcribe_rna

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/rotational-cipher/impl.mips
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# - read shift key 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 a zero-terminated string representing the return value to address given in a2
# - write a null-terminated string representing the return value to address given in a2

.globl rotate

Expand Down

0 comments on commit 09255ed

Please sign in to comment.