<?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>8-bit MicrocontrollersのトピックRe: High-Address into the accumulator in asm using only LDA</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/High-Address-into-the-accumulator-in-asm-using-only-LDA/m-p/237167#M19498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was exactly looking for that ! Thanks a lot !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Mar 2013 14:43:49 GMT</pubDate>
    <dc:creator>Brax02</dc:creator>
    <dc:date>2013-03-22T14:43:49Z</dc:date>
    <item>
      <title>High-Address into the accumulator in asm using only LDA</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/High-Address-into-the-accumulator-in-asm-using-only-LDA/m-p/237165#M19496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have declare a table like that.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ABC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DC.W&amp;nbsp; $1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The address of ABC is in my example 0xF200&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to load in the accumulator 0xF2 only using a LDA command.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LDA&amp;nbsp; #ABC==&amp;gt; A=0x0, 0x0 is the LSB of the address and not the MSB of the address 0xF2&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i do that ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for sure I can do something like but it's not the goal.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDHX #ABC&amp;nbsp; ; HX = F200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSHH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PULA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;A=0xF2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 13:48:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/High-Address-into-the-accumulator-in-asm-using-only-LDA/m-p/237165#M19496</guid>
      <dc:creator>Brax02</dc:creator>
      <dc:date>2013-03-22T13:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: High-Address into the accumulator in asm using only LDA</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/High-Address-into-the-accumulator-in-asm-using-only-LDA/m-p/237166#M19497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you want to use the HIGH operator in this case, at least for CodeWarrior's built-in HCS08 assembler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;CODE class="cCode"&gt;LDA #HIGH(ABC)&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 14:35:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/High-Address-into-the-accumulator-in-asm-using-only-LDA/m-p/237166#M19497</guid>
      <dc:creator>implicit</dc:creator>
      <dc:date>2013-03-22T14:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: High-Address into the accumulator in asm using only LDA</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/High-Address-into-the-accumulator-in-asm-using-only-LDA/m-p/237167#M19498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was exactly looking for that ! Thanks a lot !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 14:43:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/High-Address-into-the-accumulator-in-asm-using-only-LDA/m-p/237167#M19498</guid>
      <dc:creator>Brax02</dc:creator>
      <dc:date>2013-03-22T14:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: High-Address into the accumulator in asm using only LDA</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/High-Address-into-the-accumulator-in-asm-using-only-LDA/m-p/237168#M19499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following alternatives should also work -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; lda #(ABC/256)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; lda #(ABC&amp;gt;&amp;gt;8)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculation is done during assembly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 01:10:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/High-Address-into-the-accumulator-in-asm-using-only-LDA/m-p/237168#M19499</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2013-03-25T01:10:09Z</dc:date>
    </item>
  </channel>
</rss>

