<?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>fix a constant address of code</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/14385/fix-a-constant-address-of-code</link><description> I would like to fix an address to start my code always at the same address. I have all books C51, A51, BL51, etc but I&amp;#39;ve lost my L51 book... 
 
I use in the option file of linker the instruction CODE(4000H). It works but it&amp;#39;s not enough: I want to specify</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: fix a constant address of code</title><link>https://community.arm.com/thread/109842?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2001 08:47:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1d0fc411-50a7-4427-9755-751f1df87dcc</guid><dc:creator>gouezel yann</dc:creator><description>&lt;p&gt;This solution seams to be OK:&lt;br /&gt;
&lt;br /&gt;
CODE(4000h, ?PR?MAIN?FILE1(4100h))&lt;br /&gt;
&lt;br /&gt;
My code is located from 4000h, and my main() written in file1.c is located from 4100h address.&lt;br /&gt;
&lt;br /&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fix a constant address of code</title><link>https://community.arm.com/thread/94817?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2001 08:23:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:19af4b9a-ed69-41c9-9572-91792e4800ec</guid><dc:creator>Andrew Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;I need to put my code from 4000H&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
That sounds like a fixed address to me!?&lt;br /&gt;
&lt;br /&gt;
The knowledge base article refers to locating items at a fixed address in code space - that sounded like what you want to do?&lt;br /&gt;
&lt;br /&gt;
You can follow the same &lt;i&gt;technique&lt;/i&gt; to fix the location (&lt;i&gt;ie,&lt;/i&gt; address) of main()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fix a constant address of code</title><link>https://community.arm.com/thread/53783?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2001 07:30:28 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cf5294df-923f-424e-93e6-edd88522dc18</guid><dc:creator>gouezel yann</dc:creator><description>&lt;p&gt;my question concerns the code not a fixed memory address.&lt;br /&gt;
&lt;br /&gt;
Here is my need: my software is downloaded by a boot program. After download a JMP instruction is executed to a fixed address (i.e 4100H) where the code of my main() is located.&lt;br /&gt;
&lt;br /&gt;
I need to put my code from 4000H, where 4100H is the address of the main().&lt;br /&gt;
&lt;br /&gt;
How?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fix a constant address of code</title><link>https://community.arm.com/thread/37686?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2001 07:12:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:57c57039-976a-4ba3-a136-450e826d2209</guid><dc:creator>Andrew Neil</dc:creator><description>&lt;p&gt;First, all the manuals (in PDF) are accessible via the &amp;#39;Books&amp;#39; tab in the uVision Project window&lt;br /&gt;
&lt;br /&gt;
See the thread &lt;i&gt;&amp;quot;preset of a code-byte&amp;quot;&lt;/i&gt; &lt;br /&gt;
&lt;a href="http://www.keil.com/forum/docs/thread691.asp"&gt;http://www.keil.com/forum/msgpage.asp?MsgID=2645&lt;/a&gt;&lt;br /&gt;
 - it contains some links to app notes about using the Linker for such things.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>