<?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 Source/Destination values In Assembly Instructions in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Source-Destination-values-In-Assembly-Instructions/m-p/170617#M11415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at different device families...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With AVR I'd&amp;nbsp;use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;SomeInstruction&amp;gt; Destination , Source&lt;/P&gt;&lt;P&gt;&amp;nbsp; MOV r0,r1 ; move r1 into r0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With PIC I'd use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;lt;SomeInstruction&amp;gt; Source , Destination&lt;/P&gt;&lt;P&gt;&amp;nbsp;MOV w0 , w1 ; move w0 into w1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Freescale I'd use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;lt;SomeInstruction&amp;gt; Source , Destination&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I prefer&amp;nbsp;"thinking" Source,Destination because it looks like stuff is moving from left to right so it's more intuitive (to me at least), and this is how I'd like to build my macros and explain to students.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm not familiar with all freescale products, and products from other manufacturers, so would people agree that the Source,Destination is the most widely supported "way" at least for freescale products, do people know about other assembly languages that are popular that use the opposite way??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help, ideas thoughts welcome...Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jan 2010 11:38:15 GMT</pubDate>
    <dc:creator>kicchip</dc:creator>
    <dc:date>2010-01-28T11:38:15Z</dc:date>
    <item>
      <title>Source/Destination values In Assembly Instructions</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Source-Destination-values-In-Assembly-Instructions/m-p/170617#M11415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at different device families...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With AVR I'd&amp;nbsp;use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;SomeInstruction&amp;gt; Destination , Source&lt;/P&gt;&lt;P&gt;&amp;nbsp; MOV r0,r1 ; move r1 into r0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With PIC I'd use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;lt;SomeInstruction&amp;gt; Source , Destination&lt;/P&gt;&lt;P&gt;&amp;nbsp;MOV w0 , w1 ; move w0 into w1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Freescale I'd use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;lt;SomeInstruction&amp;gt; Source , Destination&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I prefer&amp;nbsp;"thinking" Source,Destination because it looks like stuff is moving from left to right so it's more intuitive (to me at least), and this is how I'd like to build my macros and explain to students.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm not familiar with all freescale products, and products from other manufacturers, so would people agree that the Source,Destination is the most widely supported "way" at least for freescale products, do people know about other assembly languages that are popular that use the opposite way??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help, ideas thoughts welcome...Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 11:38:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Source-Destination-values-In-Assembly-Instructions/m-p/170617#M11415</guid>
      <dc:creator>kicchip</dc:creator>
      <dc:date>2010-01-28T11:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Source/Destination values In Assembly Instructions</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Source-Destination-values-In-Assembly-Instructions/m-p/170618#M11416</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;I am not familiar with all the Freescale products either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But perhaps the original "thinking" might have been somewhat connected to the endianness of each product.&amp;nbsp; The Freescale product is big endian, whereas the AVR product appears to be little endian, where the address byte sequence is "reversed".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I seem to recall that the Intel CPUs were similar to the AVR, but I am not entirely certain.&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>Thu, 28 Jan 2010 21:30:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Source-Destination-values-In-Assembly-Instructions/m-p/170618#M11416</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-01-28T21:30:03Z</dc:date>
    </item>
  </channel>
</rss>

