<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Linking (joining/including) separate asm modules into 1 file</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/27410/linking-joining-including-separate-asm-modules-into-1-file</link><description> 
Hello All, 

 
i wanted to apply some modular approach in my program designing,
so i decided to pre-write some common modules which are frequently
used by me (like a customizable 7 segment display code, LCD code,
etc.) and include (add, or whatever</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Linking (joining/including) separate asm modules into 1 file</title><link>https://community.arm.com/thread/115885?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2010 10:40:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:784d3a87-016c-4785-8261-8e48d5a9f499</guid><dc:creator>Bhavnit Singh Bajwa</dc:creator><description>&lt;p&gt;&lt;p&gt;
Okay, i have studied the example and tried to implement the same
and the good news is, &lt;b&gt;it is now working!&lt;/b&gt; :) i&amp;#39;ll test more in
the morning and let You know if i dont understand something.&lt;/p&gt;

&lt;p&gt;
Thank You a lot for Your help! :)&lt;/p&gt;

&lt;p&gt;
Just 1 tiny little thing more:&lt;/p&gt;

&lt;p&gt;
In the &lt;b&gt;Keil\C51\Examples\ASM&lt;/b&gt; example, i noticed there were
also batch files present for each .a51 files they included into a
single project, but in my case, there were no batch files created,
yet the example is working fine.. why is it so?&lt;/p&gt;

&lt;p&gt;
Thank You again for Your time!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking (joining/including) separate asm modules into 1 file</title><link>https://community.arm.com/thread/104084?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2010 23:35:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4600b866-ec3e-4d0b-9023-ad615e18d5b7</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
No, you haven&amp;#39;t!&lt;/p&gt;

&lt;p&gt;
Look again, &lt;b&gt;&lt;i&gt;very&lt;/i&gt; carefully&lt;/b&gt;, at &lt;i&gt;precisely&lt;/i&gt; what
you actually wrote.&lt;/p&gt;

&lt;p&gt;
Compare character-by-character...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking (joining/including) separate asm modules into 1 file</title><link>https://community.arm.com/thread/104081?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2010 23:25:05 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:825d2ef4-9df6-462d-a6c7-f93a998e8082</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
You just add all the files to a uVision Project.&lt;br /&gt;
uVision then handles translating &amp;amp; linking them.&lt;/p&gt;

&lt;p&gt;
There is a multi-file assembler example in your
&lt;b&gt;KEIL\C51\EXAMPLES\ASM&lt;/b&gt; folder.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking (joining/including) separate asm modules into 1 file</title><link>https://community.arm.com/thread/78475?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2010 19:17:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:650cb061-3ae6-4009-9e12-044d8ba9b910</guid><dc:creator>Bhavnit Singh Bajwa</dc:creator><description>&lt;p&gt;&lt;p&gt;
@ Andy Neil&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;Assemble each source file to a separate object file, and use
the Linker to Link them.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
How can i do that? and would it not create the error?&lt;/p&gt;

&lt;p&gt;
a small example would be nice showing how to do it.&lt;/p&gt;

&lt;p&gt;
@ Hans-Bern&lt;br /&gt;
hard Broeker&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;As a matter of fact, you have.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
i am sorry i am unable to get You.&lt;/p&gt;

&lt;p&gt;
The error says Code Space Memory Lap from 0000H to 0001H whereas i
have written code in memory location at 001BH... how can it generate
an error for locations 0000-00001H?&lt;/p&gt;

&lt;p&gt;
if anyone wants, i can upload the code here?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking (joining/including) separate asm modules into 1 file</title><link>https://community.arm.com/thread/58415?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2010 12:26:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9fa48426-254b-4c13-8325-337f6b78c315</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;But i haven&amp;#39;t included any code in this memory segment in the
base (inherited) assembly file!&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
As a matter of fact, you have. You&amp;#39;re just not aware of it.&lt;/p&gt;

&lt;pre&gt;
&lt;i&gt;CSEG &lt;b&gt;001B&lt;/b&gt;
LJMP Base_Timer1_ISR&lt;/i&gt;
&lt;/pre&gt;

&lt;p&gt;
You&amp;#39;ll want to have a thorough look into the list file to see why
that does &lt;b&gt;not&lt;/b&gt; do what you think it does.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking (joining/including) separate asm modules into 1 file</title><link>https://community.arm.com/thread/65710?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2010 10:23:28 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7e97e802-b0d2-4627-8b9b-591fb43c795e</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Don&amp;#39;t try to join them at the source level with include!&lt;/p&gt;

&lt;p&gt;
Assemble each source file to a separate object file, and use the
Linker to Link them.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>