<?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>CodeWarrior for MCU中的主题 Re: Immediate adresses with expressions in inline assembler</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Immediate-adresses-with-expressions-in-inline-assembler/m-p/202175#M7635</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;Have you tried placing the expression between parenthesis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 May 2010 23:46:17 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2010-05-19T23:46:17Z</dc:date>
    <item>
      <title>Immediate adresses with expressions in inline assembler</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Immediate-adresses-with-expressions-in-inline-assembler/m-p/202174#M7634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi group, it seems the inline assembler can't interpret something like struct { int baz; int foo; } bar[10]; #define OFFSET_FOO 2 __asm addd #bar + OFFSET_FOO ; I am getting a "C10000: Nothing more expected" which goes away when I remove the addition. Any hints how to make this assemble? regards, Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 22:21:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Immediate-adresses-with-expressions-in-inline-assembler/m-p/202174#M7634</guid>
      <dc:creator>slarti</dc:creator>
      <dc:date>2010-05-19T22:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Immediate adresses with expressions in inline assembler</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Immediate-adresses-with-expressions-in-inline-assembler/m-p/202175#M7635</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;Have you tried placing the expression between parenthesis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 23:46:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Immediate-adresses-with-expressions-in-inline-assembler/m-p/202175#M7635</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-05-19T23:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Immediate adresses with expressions in inline assembler</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Immediate-adresses-with-expressions-in-inline-assembler/m-p/202176#M7636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 14:44:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Immediate-adresses-with-expressions-in-inline-assembler/m-p/202176#M7636</guid>
      <dc:creator>slarti</dc:creator>
      <dc:date>2010-05-20T14:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Immediate addresses with expressions in inline assembler</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Immediate-adresses-with-expressions-in-inline-assembler/m-p/202177#M7637</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;Did you try&lt;/P&gt;&lt;PRE&gt;__asm addd #bar:OFFSET_FOO;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Extract from the Compiler_HC12.pdf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;The inline assembler enables you to specify an offset from the address of a variable in order to access the low word of a long or a float

variable: Offset = ":" ConstExpr.
Variable = Ident {"." Ident}.

Below are some examples (assuming all variables are long):
LDY @g:2 ; Load Y with ((address of g) + 2)
LDX g:2 ; Load X with the value stored there
LDD r.f:2 ; Load D with low word of field f.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 19:47:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Immediate-adresses-with-expressions-in-inline-assembler/m-p/202177#M7637</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2010-05-20T19:47:02Z</dc:date>
    </item>
  </channel>
</rss>

