-
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.
- Loading branch information
1 parent
cd0ef12
commit 5757052
Showing
5 changed files
with
61 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,19 @@ | ||
Padding VAR [FILENUM] [BASE_OFF] | ||
|
||
When called it performs an automatic GoTo to the next position | ||
of the file skipping the aligned data. | ||
Imagine to have a file where it's used an alignment of 4 bytes | ||
and your current file offset is 0x39, if you use Padding 4 the | ||
offset will be automatically changed to 0x3c. | ||
By default the padding is referred to the beginning of the file | ||
(offset 0). | ||
|
||
Arguments: | ||
VAR Size of the alignment, like 4 or 16 and so on | ||
FILENUM Number of the file associated to the archive (0) | ||
BASE_OFF base offset from where calculating the padding (0) | ||
|
||
Examples: | ||
Get NAME string | ||
Padding 4 | ||
get OFFSET long |
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,24 @@ | ||
================================================================================ | ||
Padding statements | ||
================================================================================ | ||
|
||
Get NAME string | ||
Padding 4 | ||
get OFFSET long | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
(source_file | ||
(get_statement | ||
(get) | ||
(identifier) | ||
(type | ||
(string))) | ||
(padding_statement | ||
(padding) | ||
(integer_literal)) | ||
(get_statement | ||
(get) | ||
(identifier) | ||
(type | ||
(long)))) |