<?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>ColdFire/68K Microcontrollers and Processorsのトピックmov3q with -1 value</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mov3q-with-1-value/m-p/197524#M8856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Coldfire, what is the correct result of the following mov3q instruction with data register direct effective address mode? Remember that the 3-bit immediate data value of "0" represents -1.&amp;nbsp; I'm thinking it is #2 because the 2's complement 3-bit value of -1 is 0x7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;mov3q.l #0x0,d2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//(1) d2=0xfffffff8 (suspect is wrong)&lt;/P&gt;&lt;P&gt;//(2) d2=0xffffffff (suspect is correct)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I assume the below instruction of immediate value=+7 yields the following answer.&amp;nbsp; Agree?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;mov3q.l #0x7,d2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//d2=0x00000007&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2009 10:14:51 GMT</pubDate>
    <dc:creator>tupdegrove</dc:creator>
    <dc:date>2009-07-09T10:14:51Z</dc:date>
    <item>
      <title>mov3q with -1 value</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mov3q-with-1-value/m-p/197524#M8856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Coldfire, what is the correct result of the following mov3q instruction with data register direct effective address mode? Remember that the 3-bit immediate data value of "0" represents -1.&amp;nbsp; I'm thinking it is #2 because the 2's complement 3-bit value of -1 is 0x7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;mov3q.l #0x0,d2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//(1) d2=0xfffffff8 (suspect is wrong)&lt;/P&gt;&lt;P&gt;//(2) d2=0xffffffff (suspect is correct)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I assume the below instruction of immediate value=+7 yields the following answer.&amp;nbsp; Agree?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;mov3q.l #0x7,d2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//d2=0x00000007&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 10:14:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mov3q-with-1-value/m-p/197524#M8856</guid>
      <dc:creator>tupdegrove</dc:creator>
      <dc:date>2009-07-09T10:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: mov3q with -1 value</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mov3q-with-1-value/m-p/197525#M8857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Assembler should resist to compile this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mov3q.l #0x0,d2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and/or emit error or warning, illegal operand, not&amp;nbsp;in range or something. Valid left side arguments are -1, 1,2,3,4,5,6,7 only. Like Coldfire programmer's reference manual says, data range is -1 to 7, excluding 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 13:43:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mov3q-with-1-value/m-p/197525#M8857</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-07-09T13:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: mov3q with -1 value</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mov3q-with-1-value/m-p/197526#M8858</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;Thank-you.&amp;nbsp; I misunderstood the following statement in the &lt;SPAN&gt;Coldfire programmer's reference manual&lt;/SPAN&gt; &lt;SPAN&gt;for the MOV3Q instruction.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Immediate data field—3 bits of data having a range {-1,1-7} where a data value of 0 represents -1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently, the assembler sees&amp;nbsp; -1, puts a 0 in the immediate data field, and the hardware knows to interpret it as -1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the assembler instruction corrected below, is #2 the correct value in d2 based on the 3-bit 2's complement&amp;nbsp; of -1 being 0x7?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;mov3q.l #-1,d2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//(1) d2=0xfffffff8 (suspect is wrong)&lt;/P&gt;&lt;P&gt;//(2) d2=0xffffffff (suspect is correct)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by tupdegrove on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-07-09&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;08:40 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 19:39:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mov3q-with-1-value/m-p/197526#M8858</guid>
      <dc:creator>tupdegrove</dc:creator>
      <dc:date>2009-07-09T19:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: mov3q with -1 value</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mov3q-with-1-value/m-p/197527#M8859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No confirmation but suspect the value in the comment is correct due to 2's complement of -1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;mov3q.l #-1,d2&amp;nbsp;&amp;nbsp; //&lt;/SPAN&gt;(2) d2=0xffffffff&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 09:16:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mov3q-with-1-value/m-p/197527#M8859</guid>
      <dc:creator>tupdegrove</dc:creator>
      <dc:date>2009-07-15T09:16:15Z</dc:date>
    </item>
  </channel>
</rss>

