-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9401c9c
commit 3b66e11
Showing
15 changed files
with
39 additions
and
19 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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# Instruction append | ||
|
||
## Reserved Addresses | ||
|
||
The buffer for the input string uses bytes 64 - 196 of linear memory. | ||
The buffer for the input string uses bytes 64-196 of linear memory. | ||
|
||
You may modify this buffer in place if you wish to avoid additional memory allocations | ||
You may modify this buffer in place if you wish to avoid additional memory allocations. |
2 changes: 2 additions & 0 deletions
2
exercises/practice/all-your-base/.docs/instructions.append.md
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,5 @@ | ||
# Instruction append | ||
|
||
## Reserved Addresses | ||
|
||
All input is provided as parameters, so no addresses in the linear memory are reserved. |
4 changes: 3 additions & 1 deletion
4
exercises/practice/armstrong-numbers/.docs/instructions.append.md
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,5 @@ | ||
# Instruction append | ||
|
||
## Reserved Addresses | ||
|
||
No linear memory is requires for this exercise. | ||
No linear memory is required for this exercise. |
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,3 @@ | ||
# Hints | ||
|
||
Linear memory is byte-addressable, but `i32` has a width of four bytes. |
4 changes: 1 addition & 3 deletions
4
exercises/practice/circular-buffer/.docs/instructions.append.md
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,5 +1,3 @@ | ||
# Instructions | ||
# Instructions append | ||
|
||
The `read` returns a Go-style error handling type `(i32,i32)` | ||
|
||
Hint: Linear Memory is byte-addressable, but `i32` has a width of four bytes |
2 changes: 1 addition & 1 deletion
2
exercises/practice/collatz-conjecture/.docs/instructions.append.md
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,3 @@ | ||
# Instructions append | ||
|
||
If `n` is not a positive integer, stop the program from being executed further and return -1 indicating an error condition. | ||
If `n` is _not_ a positive integer, don't continue executing and return `-1` to indicate an error condition. |
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,6 +1,8 @@ | ||
# Instruction append | ||
|
||
## Reserved Addresses | ||
|
||
The buffer for the first string uses bytes 1024-2047 of linear memory. | ||
The buffer for the second string uses bytes 2048-3075 of linear memory. | ||
|
||
You should not have to modify these buffer or allocate additional memory | ||
You should not have to modify these buffers or allocate additional memory. |
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,5 @@ | ||
# Instruction append | ||
|
||
## Reserved Memory | ||
|
||
Bytes 64-319 of the linear memory are reserved for the input string. | ||
The buffer for the input string uses bytes 64-319 of linear memory. |
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,5 @@ | ||
# Instruction append | ||
|
||
## Reserved Addresses | ||
|
||
No linear memory is required for this exercise. |
10 changes: 6 additions & 4 deletions
10
exercises/practice/resistor-color/.docs/instructions.append.md
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,10 +1,12 @@ | ||
# Instructions append | ||
|
||
## Reserved Memory | ||
|
||
Bytes 64-189 of the linear memory are reserved for the input string. | ||
The buffer for the input string uses bytes 64-189 of linear memory. | ||
|
||
# Instructions append | ||
## Arrays | ||
|
||
WebAssembly does not have the concept of arrays. For the colors test, return a comma-delimited buffer of characters in the form: | ||
`black,brown,red,orange,yellow,green,blue,violet,grey,white` | ||
WebAssembly does not have the concept of arrays. | ||
For the colors test, return a comma-delimited buffer of characters in the form: `black,brown,red,orange,yellow,green,blue,violet,grey,white` | ||
|
||
You will then have to internally build an array of structures using offsets and lengths to provide structure around this buffer. |
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,5 +1,5 @@ | ||
## Reserved Memory | ||
|
||
Bytes 64-319 of the linear memory are reserved for the input string. | ||
The buffer for the input string uses bytes 64-319 of linear memory. | ||
|
||
The input string can be modified in place if desired. |
4 changes: 3 additions & 1 deletion
4
exercises/practice/rna-transcription/.docs/instructions.append.md
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,5 +1,7 @@ | ||
# Instruction append | ||
|
||
## Reserved Memory | ||
|
||
Bytes 64-189 of the linear memory are reserved for the input string. | ||
The buffer for the input string uses bytes 64-189 of linear memory. | ||
|
||
The input string can be modified in place if desired. |
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,5 @@ | ||
# Instruction append | ||
|
||
## Reserved Addresses | ||
|
||
No linear memory is required for this exercise. |
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,5 @@ | ||
# Instruction append | ||
|
||
## Reserved Addresses | ||
|
||
The input buffer for the first string uses bytes 128-192 linear memory. | ||
The buffer for the input string uses bytes 128-192 of linear memory. |