[NASM] Include binary files by statement.

Programming, for all ages and all languages.
Post Reply
User avatar
CorruptedByCPU
Member
Member
Posts: 78
Joined: Tue Feb 11, 2014 4:59 pm

[NASM] Include binary files by statement.

Post 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?
https://blackdev.org/ - system programming, my own 64 bit kernel and software.
Octocontrabass
Member
Member
Posts: 5513
Joined: Mon Mar 25, 2013 7:01 pm

Re: [NASM] Include binary files by statement.

Post by Octocontrabass »

This is a question you could have easily answered by using Google.

incbin
User avatar
CorruptedByCPU
Member
Member
Posts: 78
Joined: Tue Feb 11, 2014 4:59 pm

Re: [NASM] Include binary files by statement.

Post 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
https://blackdev.org/ - system programming, my own 64 bit kernel and software.
Post Reply