Page 1 of 1

[NASM] Include binary files by statement.

Posted: Sun Jan 08, 2017 4:26 am
by CorruptedByCPU
I'm trying to include files like this:

Code: Select all

file_hostname:
%push
	%defstr		%$system_locale		VARIABLE_KERNEL_LOCALE
	%strcat		%$include_program_locale,	"system/", %$system_locale, "/etc/hostname"
	%include	%$include_program_locale
%pop
file_hostname_end:
but i got warrnings (eg. label without colon)
How to include this files as binaries?

Re: [NASM] Include binary files by statement.

Posted: Sun Jan 08, 2017 4:39 am
by Octocontrabass
This is a question you could have easily answered by using Google.

incbin

Re: [NASM] Include binary files by statement.

Posted: Sun Jan 08, 2017 4:49 am
by CorruptedByCPU
Octocontrabass wrote:This is a question you could have easily answered by using Google.

incbin
Oh, I didn't know, that I can change %include to incbin in this type of code :D