IL2CPU icon indicating copy to clipboard operation
IL2CPU copied to clipboard

Use NASM incbin for embedded resources

Open fanoI opened this issue 6 years ago • 0 comments

Actually IL2CPU is opening the file and creating an hexdup of it and then uses the X# instruction 'db' to include it in the assembler file, sadly this does work when the file becomes too much big (for example 200 KB) as NASM doesn't compile anymore.

A possible solution to this is to use the NASM directive incbin instead for these cases.

See here for one example: http://forum.codecall.net/topic/65317-assembly-file-io-and-incbin-win32-nasm/

fanoI avatar Aug 23 '18 12:08 fanoI