<?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: code-red: disassembler mnemonics in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/code-red-disassembler-mnemonics/m-p/555191#M13573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by igorsk on Fri Apr 16 10:04:12 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Those are Thumb-2 (ARMv7M) instructions. You can find the descriptions in the ARMv7 reference manual (either v7M or v7A&amp;amp;R versions). In short:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVW is a variation of MOV (immediate) which can load an arbitrary 16-bit immediate into the register. MOVT is "Move Top", doing the same but for the top 16 bits of the register. Together, they allow to load any 32-bit immediate into the register without having to use the literal pool, which would incur additional delays because of memory bus access.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The .w suffix denotes that the instruction is 32-bit (used to distinguish from 16-bit istructions with the same mnemonic).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:06:09 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:06:09Z</dc:date>
    <item>
      <title>code-red: disassembler mnemonics</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/code-red-disassembler-mnemonics/m-p/555190#M13572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by caprock on Fri Apr 16 09:06:27 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the code-red with lpcxpresso and 1343 I cannot find the reference for the source disassembler mnemonics that are displayed for the code red. So far, checking the ARM &amp;amp; thumb-2 reference manuals, and the gcc assembler manuals has not provided the clues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please direct me to the assembler mnemonic tables that are used here? Where is the reference manual located?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, this is the main entry for Blinky. The instructions seem to be displayed as pseudo code? [I]movt, movw, mov.w[/I]?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2]0x0000015c &amp;lt;main+56&amp;gt;: ldr r2, [r2, #120]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT]0x0000015e &amp;lt;main+58&amp;gt;: movw r3, #0 ; 0x0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x00000162 &amp;lt;main+62&amp;gt;: movt r3, #4096 ; 0x1000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x00000166 &amp;lt;main+66&amp;gt;: ldr r1, [r3, #0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x00000168 &amp;lt;main+68&amp;gt;: udiv r1, r1, r2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x0000016c &amp;lt;main+72&amp;gt;: movw r3, #34079 ; 0x851f&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x00000170 &amp;lt;main+76&amp;gt;: movt r3, #20971 ; 0x51eb&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x00000174 &amp;lt;main+80&amp;gt;: umull r2, r1, r3, r1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x00000178 &amp;lt;main+84&amp;gt;: mov.w r1, r1, lsr #5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x0000017c &amp;lt;main+88&amp;gt;: mov.w r0, #0 ; 0x0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x00000180 &amp;lt;main+92&amp;gt;: add.w r1, r1, #4294967295 ; 0xffffffff&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x00000184 &amp;lt;main+96&amp;gt;: bl 0x52c &amp;lt;init_timer16&amp;gt;[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE]&lt;/SPAN&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338226"&gt;1100308_main.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:06:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/code-red-disassembler-mnemonics/m-p/555190#M13572</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: code-red: disassembler mnemonics</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/code-red-disassembler-mnemonics/m-p/555191#M13573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by igorsk on Fri Apr 16 10:04:12 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Those are Thumb-2 (ARMv7M) instructions. You can find the descriptions in the ARMv7 reference manual (either v7M or v7A&amp;amp;R versions). In short:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVW is a variation of MOV (immediate) which can load an arbitrary 16-bit immediate into the register. MOVT is "Move Top", doing the same but for the top 16 bits of the register. Together, they allow to load any 32-bit immediate into the register without having to use the literal pool, which would incur additional delays because of memory bus access.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The .w suffix denotes that the instruction is 32-bit (used to distinguish from 16-bit istructions with the same mnemonic).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:06:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/code-red-disassembler-mnemonics/m-p/555191#M13573</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: code-red: disassembler mnemonics</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/code-red-disassembler-mnemonics/m-p/555192#M13574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by caprock on Fri Apr 16 10:13:39 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:06:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/code-red-disassembler-mnemonics/m-p/555192#M13574</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:06:10Z</dc:date>
    </item>
  </channel>
</rss>

