<?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のトピックBRSET - assembly listing</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/BRSET-assembly-listing/m-p/164853#M4746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using CodeWarrior for MC9S08. I am trying to understand the assembly listing in the True-Time Simulator &amp;amp; Real-Time Debugger. The first line of the listing is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;0000&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;000000&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; BRSET&amp;nbsp;&amp;nbsp; 0,0x00, *+&lt;SPAN style="color: #ff0000;"&gt;3&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;abs&amp;nbsp;= 0x0003&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but from what I understand from the instruction set, the source and object code for BRSET is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;Source&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;BRSET&amp;nbsp;&amp;nbsp; n, opr8a, rel&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;Object&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;00 dd rr&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; (assuming we are dealing with b0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore the object code should be &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;&lt;EM&gt;000003&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;Why is it &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&lt;EM&gt;000000&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Nov 2010 17:40:42 GMT</pubDate>
    <dc:creator>leesp</dc:creator>
    <dc:date>2010-11-24T17:40:42Z</dc:date>
    <item>
      <title>BRSET - assembly listing</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/BRSET-assembly-listing/m-p/164853#M4746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using CodeWarrior for MC9S08. I am trying to understand the assembly listing in the True-Time Simulator &amp;amp; Real-Time Debugger. The first line of the listing is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;0000&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;000000&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; BRSET&amp;nbsp;&amp;nbsp; 0,0x00, *+&lt;SPAN style="color: #ff0000;"&gt;3&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;abs&amp;nbsp;= 0x0003&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but from what I understand from the instruction set, the source and object code for BRSET is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;Source&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;BRSET&amp;nbsp;&amp;nbsp; n, opr8a, rel&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;Object&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;00 dd rr&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; (assuming we are dealing with b0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore the object code should be &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;&lt;EM&gt;000003&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;Why is it &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&lt;EM&gt;000000&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 17:40:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/BRSET-assembly-listing/m-p/164853#M4746</guid>
      <dc:creator>leesp</dc:creator>
      <dc:date>2010-11-24T17:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: BRSET - assembly listing</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/BRSET-assembly-listing/m-p/164854#M4747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rel is relative to the first byte of next instruction. * is first byte of current instruction. So *+3&amp;nbsp;and opcode is correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 17:49:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/BRSET-assembly-listing/m-p/164854#M4747</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2010-11-24T17:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: BRSET - assembly listing</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/BRSET-assembly-listing/m-p/164855#M4748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kef,&lt;/P&gt;&lt;P&gt;Pardon me I still don't understand. Am I right that&lt;/P&gt;&lt;P&gt;BRSET&amp;nbsp;&amp;nbsp; &lt;FONT color="#339966"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/FONT&gt;,&lt;STRONG&gt;&lt;FONT color="#993366"&gt;0x00&lt;/FONT&gt;&lt;/STRONG&gt;, &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;*+3&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;&lt;/FONT&gt; &lt;FONT color="#000000"&gt;means:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Branch if bit &lt;STRONG&gt;&lt;FONT color="#339966"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; in memory location &lt;STRONG&gt;&lt;FONT color="#993366"&gt;0x00&lt;/FONT&gt;&lt;/STRONG&gt; is set; the branch-to location is &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;+3&lt;/STRONG&gt;&lt;/FONT&gt; bytes from the next instruction?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Then according to:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;Source&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;BRSET&amp;nbsp;&amp;nbsp; n, opr8a, rel&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;Object&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;00 dd rr&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; , n = 00, opra8a = 0x00, rel = +3, the opcode should be 000003 right?&lt;/P&gt;&lt;P&gt;Please help to answer. Thanks..&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 18:17:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/BRSET-assembly-listing/m-p/164855#M4748</guid>
      <dc:creator>leesp</dc:creator>
      <dc:date>2010-11-24T18:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: BRSET - assembly listing</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/BRSET-assembly-listing/m-p/164856#M4749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BRSET&amp;nbsp;&amp;nbsp; &lt;FONT color="#339966"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/FONT&gt;,&lt;STRONG&gt;&lt;FONT color="#993366"&gt;0x00&lt;/FONT&gt;&lt;/STRONG&gt;, &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;*+3&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;FONT color="#51626F"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;Is the same like&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;L1:&amp;nbsp; BRSET 0,0x00,L2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;L2:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;* is quivalent to L1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#888888"&gt;rel is calculated relative to L2. rel=0 means branch from L2 to L2+rel = L2+0 = L2&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 18:31:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/BRSET-assembly-listing/m-p/164856#M4749</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2010-11-24T18:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: BRSET - assembly listing</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/BRSET-assembly-listing/m-p/164857#M4750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Kef, thanks a lot I understand now.&lt;/P&gt;&lt;P&gt;I didn't know " * " means the current program counter value. I think the MC9s08 user manual assume a newbie like me understand this!&lt;/P&gt;&lt;P&gt;Where can I find out more fundamental things like this (since the uC manual does not provide this information)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 18:41:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/BRSET-assembly-listing/m-p/164857#M4750</guid>
      <dc:creator>leesp</dc:creator>
      <dc:date>2010-11-24T18:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: BRSET - assembly listing</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/BRSET-assembly-listing/m-p/164858#M4751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;* should be mentioned in Codewarrior assembler manual. Disassembler just uses same notation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 19:01:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/BRSET-assembly-listing/m-p/164858#M4751</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2010-11-24T19:01:49Z</dc:date>
    </item>
  </channel>
</rss>

