-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for ReverseShort statements
- Loading branch information
1 parent
4bb35d6
commit 66cb9cc
Showing
5 changed files
with
43 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 @@ | ||
ReverseShort VAR [ENDIAN] | ||
|
||
Classical swap that inverts a 16bit variable from 0x2211 to | ||
0x1122 | ||
and vice versa. | ||
|
||
Arguments: | ||
VAR variable to flip | ||
ENDIAN desired endianess like little or big |
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,22 @@ | ||
================================================================================ | ||
ReverseShort statements | ||
================================================================================ | ||
|
||
reverseshort REVERSE_CRC | ||
reverseshort REVERSE_CRC little | ||
reverseshort REVERSE_CRC big | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
(source_file | ||
(reverseshort_statement | ||
(reverseshort) | ||
(identifier)) | ||
(reverseshort_statement | ||
(reverseshort) | ||
(identifier) | ||
(little)) | ||
(reverseshort_statement | ||
(reverseshort) | ||
(identifier) | ||
(big))) |