OSDev.org
https://forum.osdev.org/

[NASM] Include binary files by statement.
https://forum.osdev.org/viewtopic.php?f=13&t=31179
Page 1 of 1

Author:  akasei [ Sun Jan 08, 2017 4:26 am ]
Post subject:  [NASM] Include binary files by statement.

I'm trying to include files like this:
Code:
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?

Author:  Octocontrabass [ Sun Jan 08, 2017 4:39 am ]
Post subject:  Re: [NASM] Include binary files by statement.

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

incbin

Author:  akasei [ Sun Jan 08, 2017 4:49 am ]
Post subject:  Re: [NASM] Include binary files by statement.

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

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/