<?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>org 0000h how to specify in keil c</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/17297/org-0000h-how-to-specify-in-keil-c</link><description> Hi 
all iam working c8051f020 ,iam new to microcontroller field , 
 In assembly we specify org 0000h , 
but how it can be specified in keil c why bcos as soon as iam doing single stepping my programme the control is jumping to 0FA2H,instead of 0000h</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: org 0000h how to specify in keil c</title><link>https://community.arm.com/thread/72368?ContentTypeID=1</link><pubDate>Mon, 22 Mar 2004 00:03:37 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f2374dd1-4460-4c10-8afd-d42e4fa7c2d5</guid><dc:creator>JOHN E</dc:creator><description>&lt;p&gt;hi&lt;br /&gt;
neil thanks for your valuable reply .&lt;br /&gt;
&lt;br /&gt;
regards&lt;br /&gt;
james d&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: org 0000h how to specify in keil c</title><link>https://community.arm.com/thread/41902?ContentTypeID=1</link><pubDate>Sat, 20 Mar 2004 08:13:05 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8666f9a2-220e-4102-9147-68f632d28a92</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;The 8051 hardware will &lt;i&gt;&lt;b&gt;ALWAYS&lt;/b&gt;&lt;/i&gt; begin execution at address 0x0000 - that&amp;#39;s the way the hardware works.&lt;br /&gt;
&lt;br /&gt;
When you write in &amp;#39;C&amp;#39;, it will place code at 0x0000 to jump to the startup code in &lt;b&gt;startup.a51&lt;/b&gt; - see the C51 &lt;b&gt;Manual&lt;/b&gt; for details.&lt;br /&gt;
&lt;br /&gt;
When it&amp;#39;s finished, startup.a51 jumps to Keil&amp;#39;s runtime startup code - and it is this startup code that eventually calls your &lt;b&gt;main()&lt;/b&gt; function.&lt;br /&gt;
&lt;br /&gt;
Thus you can see that &lt;i&gt;&amp;quot;run programme from 0000h in C(keil c)&amp;quot;&lt;/i&gt; is actually meaningless.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>