<?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のトピックRe: assembly in cw</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/assembly-in-cw/m-p/137168#M1906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;If the source file has extension ".s" the CodeWarrior assembler will be invoked.&lt;BR /&gt;&lt;BR /&gt;Here's a really simple example of an assembler file:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .text&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .globl&amp;nbsp;&amp;nbsp; _add_em&lt;BR /&gt;_add_em:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; move.l&amp;nbsp;&amp;nbsp; #1,d0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; add.l&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #2,d0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rts&lt;BR /&gt;&lt;BR /&gt;This can be called from C in the following way:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extern int fred (void);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = fred ();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2007 16:25:23 GMT</pubDate>
    <dc:creator>SimonMarsden_de</dc:creator>
    <dc:date>2007-06-19T16:25:23Z</dc:date>
    <item>
      <title>assembly in cw</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/assembly-in-cw/m-p/137167#M1905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;hi, I'm a new user of cw for codefire 6.3 targetting M52233demo and I am having difficulty in building a new assembly file. It seems&amp;nbsp;I can not build a simple assembly since there are choices only for c,cpp,ecpp. Then I tried inline assembly like asm{...} regarding to the inline assembly in coldfire_build_tools_reference, but there are too many error like "unknown assembler instruction mnemonic". What should I do to make a assemly source file or do I need to do some special setting? Thanks so&amp;nbsp; much.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 01:07:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/assembly-in-cw/m-p/137167#M1905</guid>
      <dc:creator>perfume</dc:creator>
      <dc:date>2007-06-19T01:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: assembly in cw</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/assembly-in-cw/m-p/137168#M1906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;If the source file has extension ".s" the CodeWarrior assembler will be invoked.&lt;BR /&gt;&lt;BR /&gt;Here's a really simple example of an assembler file:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .text&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .globl&amp;nbsp;&amp;nbsp; _add_em&lt;BR /&gt;_add_em:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; move.l&amp;nbsp;&amp;nbsp; #1,d0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; add.l&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #2,d0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rts&lt;BR /&gt;&lt;BR /&gt;This can be called from C in the following way:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extern int fred (void);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = fred ();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 16:25:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/assembly-in-cw/m-p/137168#M1906</guid>
      <dc:creator>SimonMarsden_de</dc:creator>
      <dc:date>2007-06-19T16:25:23Z</dc:date>
    </item>
  </channel>
</rss>

