<?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>S12 / MagniV MicrocontrollersのトピックRe: Asembly &amp; C</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Asembly-C/m-p/134890#M2129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;thanks for the replys..Cat and Guru... I guess i wont mess with that part i'll try to see what&amp;nbsp; i'm do wrong on other parts of the proyect .. tahnks again&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Nov 2006 23:28:03 GMT</pubDate>
    <dc:creator>Franky_TJ_</dc:creator>
    <dc:date>2006-11-03T23:28:03Z</dc:date>
    <item>
      <title>Asembly &amp; C</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Asembly-C/m-p/134887#M2126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;i've been told that there some things that could go wrong when mixing asembly and C. I'm usign CW and i created a function that has 3 input parameters and no return value but the entire body is assembly. And one problem that i'm worried about is that before code generated by the compiller adds a PSH before i use any of the paraneters...My question is&amp;nbsp; . Is this the reason that my function works some of the time but runs into&amp;nbsp; trouble when call it consecutivle?... and if so is there any document that could help me on how to succesfully mix ASM &amp;amp; C in CodeWarrior&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 08:12:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Asembly-C/m-p/134887#M2126</guid>
      <dc:creator>Franky_TJ_</dc:creator>
      <dc:date>2006-10-31T08:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Asembly &amp; C</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Asembly-C/m-p/134888#M2127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;As far as I could check the file you attached to this post contains an ANSI C function containing only inline assembly code.&lt;/DIV&gt;&lt;DIV&gt;So basically you are invoking an ANSI C function from an ANSI C module.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So parameter passing will be done appropriately and there should be no problem.&lt;/DIV&gt;&lt;DIV&gt;The PSH you are seeing at the beginning of the function is some entry code added by the compiler. There is probably a corresponding POP instruction at the end of the function.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrayCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 19:32:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Asembly-C/m-p/134888#M2127</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-10-31T19:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Asembly &amp; C</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Asembly-C/m-p/134889#M2128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The push is done to put the register parameter on the stack, where the assembly code&lt;BR /&gt;is reading it later. So it is necessary for the current assembly code. If you want full control, you can disable all the compiler stuff with some #pragmas, but then you have to follow the compiler calling convention on your own, this way the compiler takes care of that.&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 17:34:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Asembly-C/m-p/134889#M2128</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-11-03T17:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Asembly &amp; C</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Asembly-C/m-p/134890#M2129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;thanks for the replys..Cat and Guru... I guess i wont mess with that part i'll try to see what&amp;nbsp; i'm do wrong on other parts of the proyect .. tahnks again&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 23:28:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Asembly-C/m-p/134890#M2129</guid>
      <dc:creator>Franky_TJ_</dc:creator>
      <dc:date>2006-11-03T23:28:03Z</dc:date>
    </item>
  </channel>
</rss>

