mirror of
https://github.com/gbdev/rgbds.git
synced 2026-11-21 21:48:39 +00:00
Document the behavior of overlong INCBIN length (#2207)
This commit is contained in:
1 parent
1827fbf297
commit
df66063eb4
1 file changed
+6
-1
+6
-1
@@ -1888,10 +1888,15 @@ INCBIN "sprites/hero.bin"
|
||||
.Pp
|
||||
You can also include only part of a file with
|
||||
.Ic INCBIN .
|
||||
The example below includes 256 bytes from data.bin, starting from byte 78.
|
||||
The example below includes 256 bytes from
|
||||
.Ql data.bin ,
|
||||
starting from byte 78.
|
||||
.Bd -literal -offset indent
|
||||
INCBIN "data.bin", 78, 256
|
||||
.Ed
|
||||
It is an error for
|
||||
.Ql data.bin
|
||||
to contain fewer than 78 + 256 = 334 bytes.
|
||||
.Pp
|
||||
The length argument is optional.
|
||||
If only the start position is specified, the bytes from the start position until the end of the file will be included.
|
||||
|
||||
Reference in new issue
Block a user