Include a binary of the specified size (incbin NESASM3)

Are you new to 6502, NES, or even programming in general? Post any of your questions here. Remember - the only dumb question is the question that remains unasked.

Moderator: Moderators

Post Reply
sdm
Posts: 412
Joined: Tue Apr 11, 2006 4:08 am
Location: Poland

Include a binary of the specified size (incbin NESASM3)

Post by sdm »

Is it possible in NESASM3 to attach a binary (incbin) file, but of a size specified by the user? (By default, Incbin imports the bin file into the ROM with the size of the file itself). For example .incbin "nametable.nam" and the attached file is 960 bytes - and I'd like only 896 bytes of that file included to ROM. Of course, you could split/cut the file externally, but that's not what I mean.

I heard that there is such a possibility in ASM6.
User avatar
Dwedit
Posts: 4924
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: Include a binary of the specified size (incbin NESASM3)

Post by Dwedit »

ASM6 can do "incbin <filename>, start, size"
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
Post Reply