<?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 Re: Accessing arrays in high level inline assembly? in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Accessing-arrays-in-high-level-inline-assembly/m-p/125186#M182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;And the H register?&lt;BR /&gt;It is used as high byte part of the H:X register pair, implicitely in&lt;BR /&gt;"lda @table, x".&lt;BR /&gt;What address is the simulator accessing, what is in X &amp;amp; H and where is the table located? Do you see how the accessed address is computed?&lt;BR /&gt;&lt;BR /&gt;Maybe a full sample showing the setup would make things clearer.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Aug 2006 15:01:57 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2006-08-02T15:01:57Z</dc:date>
    <item>
      <title>Accessing arrays in high level inline assembly?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Accessing-arrays-in-high-level-inline-assembly/m-p/125183#M179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I tried, but keep getting errors trying to access arrays in inline assembly.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the debugger gives an error on this:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;asm {&lt;/DIV&gt;&lt;DIV&gt;.&lt;/DIV&gt;&lt;DIV&gt;..&lt;/DIV&gt;&lt;DIV&gt;lda&amp;nbsp; @table, x&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It doesn't add the offset in x to the adress of table.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jul 2006 11:16:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Accessing-arrays-in-high-level-inline-assembly/m-p/125183#M179</guid>
      <dc:creator>FC</dc:creator>
      <dc:date>2006-07-29T11:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing arrays in high level inline assembly?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Accessing-arrays-in-high-level-inline-assembly/m-p/125184#M180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Can you give a more complete example and description of what you are doing, what you expect to see and what you get?&lt;BR /&gt;What error do you get, and which tool do you get this error from?&lt;BR /&gt;&lt;BR /&gt;If from the debugger, from the simulator or which hardware connection?&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 22:54:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Accessing-arrays-in-high-level-inline-assembly/m-p/125184#M180</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-07-31T22:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing arrays in high level inline assembly?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Accessing-arrays-in-high-level-inline-assembly/m-p/125185#M181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to write the inline assembly equivalent to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;TPMC0V = table[duty_cycle];&lt;/P&gt;&lt;P&gt;The simulator gives an error of "trying to access uninitalized location..."&amp;nbsp; The location is not within the table array.&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp; Inline assembly&amp;nbsp;compiles, but simulation fails with this:&lt;/P&gt;&lt;P&gt;lda @table, x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the x register contains the address offset&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 10:08:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Accessing-arrays-in-high-level-inline-assembly/m-p/125185#M181</guid>
      <dc:creator>FC</dc:creator>
      <dc:date>2006-08-01T10:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing arrays in high level inline assembly?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Accessing-arrays-in-high-level-inline-assembly/m-p/125186#M182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;And the H register?&lt;BR /&gt;It is used as high byte part of the H:X register pair, implicitely in&lt;BR /&gt;"lda @table, x".&lt;BR /&gt;What address is the simulator accessing, what is in X &amp;amp; H and where is the table located? Do you see how the accessed address is computed?&lt;BR /&gt;&lt;BR /&gt;Maybe a full sample showing the setup would make things clearer.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 15:01:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Accessing-arrays-in-high-level-inline-assembly/m-p/125186#M182</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-08-02T15:01:57Z</dc:date>
    </item>
  </channel>
</rss>

