-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instructions after 'retnd' are now properly ignored
Also no longer throws an error if 'retnd' is followed by non-instruction bytes.
- Loading branch information
Showing
10 changed files
with
174 additions
and
18 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
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
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
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
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,21 @@ | ||
# | ||
# Tests non-delayed return ignores following non-instruction bytes | ||
# | ||
|
||
.word 100; | ||
addi r1 = r0, 0; | ||
brcfnd x; | ||
nop; | ||
nop; | ||
nop; | ||
halt; | ||
nop; | ||
nop; | ||
nop; | ||
.word 24; | ||
x: addi r1 = r1, 1337; | ||
retnd; | ||
.word 2147483647; | ||
.word 2147483647; | ||
.word 2147483647; | ||
|
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,10 @@ | ||
# | ||
# Tests non-instruction bytes after disabled retnd result in error | ||
# | ||
|
||
.word 100; | ||
(!p0) retnd ; | ||
.word 2147483647; | ||
.word 2147483647; | ||
.word 2147483647; | ||
|
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,21 @@ | ||
# | ||
# Tests non-delayed return ignores following instructions | ||
# | ||
|
||
.word 100; | ||
addi r1 = r0, 0; | ||
brcfnd x; | ||
nop; | ||
nop; | ||
nop; | ||
halt; | ||
nop; | ||
nop; | ||
nop; | ||
.word 24; | ||
x: addi r1 = r1, 1337; | ||
retnd; | ||
addi r1 = r1, 1; | ||
addi r1 = r1, 2; | ||
addi r1 = r1, 3; | ||
|