-
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 ReverseLong statements
- Loading branch information
1 parent
54f273d
commit 8c672e2
Showing
5 changed files
with
42 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,8 @@ | ||
ReverseLong VAR [ENDIAN] | ||
|
||
Classical swap that inverts a 32bit variable from 0x44332211 to | ||
0x11223344 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 @@ | ||
================================================================================ | ||
ReverseLong statements | ||
================================================================================ | ||
|
||
reverselong REVERSE_CRC | ||
reverselong REVERSE_CRC little | ||
reverselong REVERSE_CRC big | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
(source_file | ||
(reverselong_statement | ||
(reverselong) | ||
(identifier)) | ||
(reverselong_statement | ||
(reverselong) | ||
(identifier) | ||
(little)) | ||
(reverselong_statement | ||
(reverselong) | ||
(identifier) | ||
(big))) |