<?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>Asscess Code address</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/16148/asscess-code-address</link><description> I am using the P89c51rd2&amp;#39;s IAP function the store the data to the code space at 
0xff00 ~ 0xffd0 
 
for example, i want to call the data at oxff00 
 
how can i do it in C51? 
 
can i use pointer? 
 
please help and many thx! 
 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Asscess Code address</title><link>https://community.arm.com/thread/95391?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2003 18:06:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:acf773f3-306f-4617-a4de-5d26e16ab846</guid><dc:creator>J Guy</dc:creator><description>&lt;p&gt;The way the original post is worded is confusing.   ...to &amp;quot;call&amp;quot; &amp;quot;data&amp;#39;.  My reference is to call &amp;quot;code&amp;quot; - perhaps some self-modifying code that never gets old.&lt;br /&gt;
&lt;br /&gt;
The Keil macros in ABSACC.h (CBYTE,CWORD) provide easy access to &amp;quot;read&amp;quot; &amp;quot;data&amp;quot; in &amp;quot;code&amp;quot; space.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asscess Code address</title><link>https://community.arm.com/thread/55105?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2003 16:15:24 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:911dbdca-544b-4a35-ae63-d42408f1ca4f</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;looking at the other reference cited earlier, it seems to me like the 0xFF00 is a sort of API call, requiring certain data to be set up in certain locations as &amp;quot;parameters&amp;quot; to the call - a bit like the old MS-DOS &lt;b&gt;INT 21&lt;/b&gt; &amp;quot;calls&amp;quot;.&lt;br /&gt;
I&amp;#39;m not sure that you could guarantee this by just casting C:0xFF00 as a function pointer? (the API may well not correspond to the C51 calling convention?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asscess Code address</title><link>https://community.arm.com/thread/95394?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2003 14:43:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0d187292-ed89-44d4-b719-e9ae6fc7833d</guid><dc:creator>Jon Ward</dc:creator><description>&lt;p&gt;&lt;i&gt;The P89c51rd2 is a Philips chip.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Uhh.  Yeah.  So it is.  I was just doing too many thing at once, I guess, and I confused myself.  :-)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Jon&lt;/b&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asscess Code address</title><link>https://community.arm.com/thread/39910?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2003 13:35:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:61859424-d636-47cb-9d17-3f17a8cdaaaa</guid><dc:creator>J Guy</dc:creator><description>&lt;p&gt;See:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.keil.com/support/docs/307.htm"&gt;http://www.keil.com/support/docs/307.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Substitute the dedired target address for 0x0000.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asscess Code address</title><link>https://community.arm.com/thread/55104?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2003 11:42:28 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c725d673-7f87-48ac-a9a9-751443217452</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;The &lt;b&gt;P&lt;/b&gt;89c51rd2 &lt;b&gt;is&lt;/b&gt; a Philips chip.&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asscess Code address</title><link>https://community.arm.com/thread/39903?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2003 10:36:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6656ef73-9514-4736-9032-8e01be38c4ee</guid><dc:creator>Jon Ward</dc:creator><description>&lt;p&gt;Check the following Knowledgebase Article:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.keil.com/support/docs/2045.htm"&gt;http://www.keil.com/support/docs/2045.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Although it talks about the Philips IAP interface, you should be able to use this information to access the Atmel IAP routines as well.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Jon&lt;/b&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asscess Code address</title><link>https://community.arm.com/thread/39904?ContentTypeID=1</link><pubDate>Mon, 28 Apr 2003 01:36:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3375d370-e9c5-4b25-8684-99931f20a3fe</guid><dc:creator>terrance peiris</dc:creator><description>&lt;p&gt;Hi Peter, No one will knows where is the location of the code memory, This is the responsible of the complier. If you are talking about data memory to fixed address location you can use _at_ command to specify the location&lt;br /&gt;
&lt;br /&gt;
BYTE time_second  _at_  0x0005 ;&lt;br /&gt;
&lt;br /&gt;
then you just call time_second&lt;br /&gt;
&lt;br /&gt;
terrance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asscess Code address</title><link>https://community.arm.com/thread/39902?ContentTypeID=1</link><pubDate>Sun, 09 Mar 2003 18:35:29 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:55a5e63f-87f1-480b-bd57-6eaa41e0d9a4</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;Have you read the section &lt;i&gt;Accessing Absolute Memory Locations&lt;/i&gt; in the &lt;b&gt;Manual&lt;/b&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>