<?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>Reading &amp;amp; writing continous RAM locations using memory specfic pointers C51 version 5.5</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/15694/reading-writing-continous-ram-locations-using-memory-specfic-pointers-c51-version-5-5</link><description> 
 
Dear Sir, 
 
 I am using C51 version 5.5,i am not able to read &amp;amp; write continous memory locations what i did using A51 code as below. 
 
 mov a,#55h 
 
 mov r0,#20h 
do: mov a,#55h 
 mov @r0,a 
 inc r0 
 mov a,r0 
 cjne a,#80h,do 
 sjmp $ 
 
Help</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Reading &amp; writing continous RAM locations using memory specfic pointers C51 version 5.5</title><link>https://community.arm.com/thread/121912?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2003 13:30:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bb169469-9b63-419b-b915-b4ce2045ecf7</guid><dc:creator>Drew Davis</dc:creator><description>&lt;p&gt;&lt;br /&gt;
Good point.  I was paying too much attention to the &amp;quot;@r0&amp;quot;, and not enough to the actual instruction!&lt;br /&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading &amp; writing continous RAM locations using memory specfic pointers C51 version 5.5</title><link>https://community.arm.com/thread/110234?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2003 12:11:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cf8a5a63-7378-46c5-9076-e4ef61e3f820</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;i&gt;What&amp;#39;s the value of P2 during this loop?&lt;/i&gt;&lt;br /&gt;
Why do you ask, it is MOV, not MOVX&lt;br /&gt;
&lt;br /&gt;
Erik&lt;br /&gt;
&lt;br /&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading &amp; writing continous RAM locations using memory specfic pointers C51 version 5.5</title><link>https://community.arm.com/thread/95354?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2003 11:23:47 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4be88af4-294c-4305-b98b-2c3a21b90faf</guid><dc:creator>Drew Davis</dc:creator><description>&lt;p&gt;&lt;br /&gt;
What&amp;#39;s the value of P2 during this loop?&lt;br /&gt;
&lt;br /&gt;
Are you not writing at all, or just writing somewhere other than you expect, or scattering values all through memory?&lt;br /&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading &amp; writing continous RAM locations using memory specfic pointers C51 version 5.5</title><link>https://community.arm.com/thread/55029?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2003 08:01:29 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0935d820-721e-4738-a37b-045c1a4c2f26</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;Just doing it in C is not the answer to his question. I have looked at the assembly code and see absolutotally no problem.&lt;br /&gt;
  One possiblity (I have been gulity myself): is the a &amp;quot;gramatical error&amp;quot; such as a missing &amp;#39;#&amp;#39; in your actual code that you subconsciously fixed when you copied the code to the forum.&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading &amp; writing continous RAM locations using memory specfic pointers C51 version 5.5</title><link>https://community.arm.com/thread/39788?ContentTypeID=1</link><pubDate>Sun, 16 Feb 2003 11:15:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2a75a472-e4d0-4c4b-bae0-4d5262a22c1f</guid><dc:creator>Franc Urbanc</dc:creator><description>&lt;p&gt;&lt;pre&gt;
  unsigned char data *dp;

  for (dp = 0x20; dp != 0x80; dp++)
    *dp = 0x55;
&lt;/pre&gt;
&lt;br /&gt;
Make sure not to overwrite your stack or the system will crash.&lt;br /&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>