<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic paged memory with __far and __rptr in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/paged-memory-with-far-and-rptr/m-p/166761#M4958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a variable mapped to banked RAM: &amp;nbsp; &amp;nbsp; char MyArray[5]&lt;/P&gt;&lt;P&gt;Now I am trying to create a pointer to this variable: &amp;nbsp;char &amp;nbsp;* __rptr &amp;nbsp;localArrPtr = &amp;nbsp;MyArray&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the right way ?&lt;/P&gt;&lt;P&gt;What is the difference between a __far pointer and a __rptr pointer ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I call a function with that pointer ?&lt;/P&gt;&lt;P&gt;void editArray ( char index, char * __rptr ArrPtr)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Dec 2010 18:09:02 GMT</pubDate>
    <dc:creator>philipp_k</dc:creator>
    <dc:date>2010-12-02T18:09:02Z</dc:date>
    <item>
      <title>paged memory with __far and __rptr</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/paged-memory-with-far-and-rptr/m-p/166761#M4958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a variable mapped to banked RAM: &amp;nbsp; &amp;nbsp; char MyArray[5]&lt;/P&gt;&lt;P&gt;Now I am trying to create a pointer to this variable: &amp;nbsp;char &amp;nbsp;* __rptr &amp;nbsp;localArrPtr = &amp;nbsp;MyArray&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the right way ?&lt;/P&gt;&lt;P&gt;What is the difference between a __far pointer and a __rptr pointer ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I call a function with that pointer ?&lt;/P&gt;&lt;P&gt;void editArray ( char index, char * __rptr ArrPtr)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 18:09:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/paged-memory-with-far-and-rptr/m-p/166761#M4958</guid>
      <dc:creator>philipp_k</dc:creator>
      <dc:date>2010-12-02T18:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: paged memory with __far and __rptr</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/paged-memory-with-far-and-rptr/m-p/166762#M4959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached application note from the {Install}\Help\PDF directory provides more details for the various type of pointers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically rptr pointer are accessed using RPAGE register, whereas far pointer are accessed using GPAGE register.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 18:31:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/paged-memory-with-far-and-rptr/m-p/166762#M4959</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2010-12-06T18:31:59Z</dc:date>
    </item>
  </channel>
</rss>

