<?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>Putting code at specific loaction in Assembly file</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/36280/putting-code-at-specific-loaction-in-assembly-file</link><description> 
I want to put the code written in assembly file at specific
location say 0x5000. Can someone give me procedure with proper
example for doing the same code? 
I have checked using &amp;quot;AREA&amp;quot; directive, but unable to find how
to specify the address in it.</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Putting code at specific loaction in Assembly file</title><link>https://community.arm.com/thread/109404?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 22:27:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a9251c1c-e8c6-487e-9d67-8f2c9d459340</guid><dc:creator>fg garesh</dc:creator><description>&lt;p&gt;&lt;p&gt;
You csn try using a SCATTER file.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Putting code at specific loaction in Assembly file</title><link>https://community.arm.com/thread/94315?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 21:12:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b338b5c6-f348-44a8-83fd-0f94f5053ce9</guid><dc:creator>Mukund Kumbhar</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks Andrew and Pier. I was also trying to do the code placement
using &lt;b&gt;scatter file&lt;/b&gt; , but I was unable to find the correct
method.&lt;br /&gt;
But now I found the proper scatter file for the code placement. I
posted this thread only to ensure that, whether there is only a
single way (scatter file) or any other simple ways.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Putting code at specific loaction in Assembly file</title><link>https://community.arm.com/thread/86267?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 08:21:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:622fb414-a0b7-4433-8e1a-afded4b15273</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Why, seems to be trying to do unnecessarily complex things with a
skill set that doesn&amp;#39;t support the task. Start by mastering the
simpler tasks before tackling the complex ones.&lt;/p&gt;

&lt;p&gt;
Consider using a linker script (scatter file) to control code
placement in regions of memory.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Putting code at specific loaction in Assembly file</title><link>https://community.arm.com/thread/70516?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 03:52:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:fdc8b650-22d7-48c5-b64a-0113dc9d51bd</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;Use the AREA directive to name the section and set its
attributes. The attributes are placed after the name, separated by
commas.&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;a href="http://www.keil.com/support/man/docs/armasm/armasm_dom1359731143697.htm"&gt;
&lt;a href="http://www.keil.com/support/man/docs/armasm/armasm_dom1359731143697.htm"&gt;www.keil.com/.../armasm_dom1359731143697.htm&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;

&lt;a href="http://www.keil.com/support/man/docs/armasm/armasm_dom1361290002714.htm"&gt;
&lt;a href="http://www.keil.com/support/man/docs/armasm/armasm_dom1361290002714.htm"&gt;www.keil.com/.../armasm_dom1361290002714.htm&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
So the AREA directive is about &lt;i&gt;naming&lt;/i&gt; sections &amp;amp;
setting their attributes - not about placing them in memory.&lt;/p&gt;

&lt;p&gt;
The tool which allocates sections to specific addresses is the
&lt;b&gt;Linker&lt;/b&gt;...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>