Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for invalid bytecode and add invalid version m0
- Loading branch information
Showing
4 changed files
with
40 additions
and
1 deletion.
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
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,9 @@ | ||
# THIS IS INVALID M0 FOR TESTING PURPOSES ONLY | ||
.version 0 | ||
.chunk | ||
.variables | ||
0 1 | ||
1 "hello world" | ||
.metadata | ||
.bytecode | ||
set_var S0, 0, 1, 42, 42, A, JUNK |
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,17 @@ | ||
# THIS IS INVALID M0 FOR TESTING PURPOSES ONLY | ||
.version FOOBAR | ||
|
||
.chunk | ||
|
||
# This defines our variable table | ||
.variables | ||
0 1 | ||
1 "hello world" | ||
|
||
.metadata | ||
|
||
.bytecode | ||
|
||
set_var S0, 0, 1 | ||
set_var I0, 0, 0 | ||
print_s I0, S0 |
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