OSDev.org

The Place to Start for Operating System Developers
It is currently Fri May 26, 2017 7:05 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [NASM] Include binary files by statement.
PostPosted: Sun Jan 08, 2017 4:26 am 
Offline
Member
Member

Joined: Tue Feb 11, 2014 4:59 pm
Posts: 31
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?

_________________
wataha.net - system programming, my own 64 bit kernel and software.


Top
 Profile  
 
 Post subject: Re: [NASM] Include binary files by statement.
PostPosted: Sun Jan 08, 2017 4:39 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 1054
This is a question you could have easily answered by using Google.

incbin


Top
 Profile  
 
 Post subject: Re: [NASM] Include binary files by statement.
PostPosted: Sun Jan 08, 2017 4:49 am 
Offline
Member
Member

Joined: Tue Feb 11, 2014 4:59 pm
Posts: 31
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

_________________
wataha.net - system programming, my own 64 bit kernel and software.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group