forked from hlorenzi/customasm
-
Notifications
You must be signed in to change notification settings - Fork 0
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 including slices of binary files
Adds 2 new forms of `incbin`: - `incbin(relative_filename, start)`: includes `relative_filename` starting from offset `start` - `incbin(relative_filename, start, size)`: includes `size` bytes from `relative_filename` starting from offset `start` I'd also like to make `incbinstr` and `inchexstr` work similarly, but I'm not sure how to make it work. When hlorenzi#191 gets merged, `ensure_inc_args` can be replaced with a call to `query.ensure_min_max_arg_number(1,3)?;`. Since I don't have that merged locally, I just wrote a quick and dirty function to do it.
- Loading branch information
1 parent
cbe63b6
commit 132a879
Showing
1 changed file
with
69 additions
and
4 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