<?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 Re: Questions about XGATE instructions and manual. in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Questions-about-XGATE-instructions-and-manual/m-p/1976148#M16065</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The assembler of the CodeWarrior can be found in the installation directory&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lama_0-1729173715031.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305264i5B26474841C0663B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lama_0-1729173715031.png" alt="lama_0-1729173715031.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes it is suitable to lok at disassembled C code I believe attached example will move you forward. Right miuse button at C code and disassemble.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN2685.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/application-note/AN2685.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The example of semaphores…attached.&lt;/P&gt;
&lt;P&gt;Some more examples…&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/LAMA-s-S12XE-unofficial-examples/ta-p/1100774" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/LAMA-s-S12XE-unofficial-examples/ta-p/1100774&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;,&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Ladislav&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2024 14:08:22 GMT</pubDate>
    <dc:creator>lama</dc:creator>
    <dc:date>2024-10-17T14:08:22Z</dc:date>
    <item>
      <title>Questions about XGATE instructions and manual.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Questions-about-XGATE-instructions-and-manual/m-p/1967522#M16056</link>
      <description>&lt;P&gt;Hello to the entire community, me again&amp;nbsp;&lt;BR /&gt;I'm looking for a reference manual for XGATE or some note of all the assembler instructions and their mode of use or addressing mode.&lt;BR /&gt;It calls my attention that I have accidentally used, for example, "INC R2" or "LDW R4, #LABEL" (I also discovered that it works in the IDE due to a typing error like this "LDW R4, LABEL")&lt;BR /&gt;I can't find these two examples in the list of instructions that the MC9S12XEP100RMV1 manual shows in the XGATE section.&lt;BR /&gt;I want to know if there are any more similar to "BSET", "BRSET", etc. among others, and to know if the instructions I used as an example above only work in the IDE due to some software error or they really work on the MCU. I understand that "LDW" is a pseudo instruction, which is actually an "LDL" plus "LDH", but in the case of "INC" the debugger shows it as "INC".&lt;BR /&gt;Then I noticed that I can't activate a semaphore from the XGATE but I can from the S12. I used my old way of semaphore used on the HC11 and HC08. "BRSET and BRCLR; BSET and BCLR on a semaphore register" setting a certain bit in a register with a small routine of logical functions both to set and clear a bit with the XGATE, since using "SSEM" doesn't change the state of the semaphore and returns the CARRY as if it had already been occupied by the S12 when it isn't.&lt;/P&gt;&lt;P&gt;Any answers to all these questions?&lt;BR /&gt;Excuse my English, part of it is mine and part of it is from Google Translate &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;Thanks for reading me.&lt;BR /&gt;I hope to find someone who knows how to assemble&lt;BR /&gt;Without further ado, I greet you sincerely.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Oct 2024 20:09:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Questions-about-XGATE-instructions-and-manual/m-p/1967522#M16056</guid>
      <dc:creator>Leojunin</dc:creator>
      <dc:date>2024-10-06T20:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about XGATE instructions and manual.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Questions-about-XGATE-instructions-and-manual/m-p/1976148#M16065</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The assembler of the CodeWarrior can be found in the installation directory&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lama_0-1729173715031.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305264i5B26474841C0663B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lama_0-1729173715031.png" alt="lama_0-1729173715031.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes it is suitable to lok at disassembled C code I believe attached example will move you forward. Right miuse button at C code and disassemble.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN2685.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/application-note/AN2685.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The example of semaphores…attached.&lt;/P&gt;
&lt;P&gt;Some more examples…&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/LAMA-s-S12XE-unofficial-examples/ta-p/1100774" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/LAMA-s-S12XE-unofficial-examples/ta-p/1100774&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;,&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Ladislav&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 14:08:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Questions-about-XGATE-instructions-and-manual/m-p/1976148#M16065</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2024-10-17T14:08:22Z</dc:date>
    </item>
  </channel>
</rss>

