<?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: How to start &amp;quot;C&amp;quot; functions from HCS12 assembler ??</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-start-quot-C-quot-functions-from-HCS12-assembler/m-p/138154#M2710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;You have to use the XREF directive to tell the assembler that the routines are external. The linker will then take care of&amp;nbsp;inserting the correct addresses into the generated code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jun 2006 20:05:21 GMT</pubDate>
    <dc:creator>Sten</dc:creator>
    <dc:date>2006-06-05T20:05:21Z</dc:date>
    <item>
      <title>How to start "C" functions from HCS12 assembler ??</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-start-quot-C-quot-functions-from-HCS12-assembler/m-p/138151#M2707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would make a "secondary interrupt vector table" on a HCS12E128 in order to modify my "interrupt vectors" on the fly (they are in a protected part of the flash). I've made this "secondary interrupt vector table" with a assembler file and i wanna start "C" functions from this file but i dont find how (with a CALL or a JSR for example).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gizmo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S&lt;/SPAN&gt;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-frustrated.gif"&gt;&lt;IMG alt=":smileyfrustrated:" class="emoticon emoticon-smileyfrustrated" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-frustrated.gif" title="Smiley Frustrated" /&gt;&lt;/A&gt;&lt;SPAN&gt;orry for my approximative english, i'm french&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 15:29:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-start-quot-C-quot-functions-from-HCS12-assembler/m-p/138151#M2707</guid>
      <dc:creator>Gizzzmo</dc:creator>
      <dc:date>2006-06-05T15:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to start "C" functions from HCS12 assembler ??</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-start-quot-C-quot-functions-from-HCS12-assembler/m-p/138152#M2708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;If your C functions are ordinary ISR routines (like interrupt void TimerISR(void) ) then you should call them with a plain JMP TimerISR. ISR C-routines are ended with a RTI instruction, and they must be called directly from the interrupt (and they must be in the non-paged area of the memory).&lt;/P&gt;&lt;P&gt;An other way to do it would be that your assembler routine calls ordinary C functions (like void TimerSecISR(void)) with a CALL TimerSecISR (if TimerSecISR is in paged memory) or JSR TimerSecISR (non-paged memory), but then your assembler routine must be aware of that the control will return to it after the routine completes and the RTI must be in the assembler code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 16:57:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-start-quot-C-quot-functions-from-HCS12-assembler/m-p/138152#M2708</guid>
      <dc:creator>Sten</dc:creator>
      <dc:date>2006-06-05T16:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to start "C" functions from HCS12 assembler ??</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-start-quot-C-quot-functions-from-HCS12-assembler/m-p/138153#M2709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I've tried this but the assembler file doesn't find my C-routine.&lt;BR /&gt;&lt;BR /&gt;How can I make him find my routine ?&lt;BR /&gt;&lt;BR /&gt;Thx&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 19:35:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-start-quot-C-quot-functions-from-HCS12-assembler/m-p/138153#M2709</guid>
      <dc:creator>Gizzzmo</dc:creator>
      <dc:date>2006-06-05T19:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to start "C" functions from HCS12 assembler ??</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-start-quot-C-quot-functions-from-HCS12-assembler/m-p/138154#M2710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;You have to use the XREF directive to tell the assembler that the routines are external. The linker will then take care of&amp;nbsp;inserting the correct addresses into the generated code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 20:05:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-start-quot-C-quot-functions-from-HCS12-assembler/m-p/138154#M2710</guid>
      <dc:creator>Sten</dc:creator>
      <dc:date>2006-06-05T20:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to start "C" functions from HCS12 assembler ??</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-start-quot-C-quot-functions-from-HCS12-assembler/m-p/138155#M2711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thx a lot, it works really well :smileywink:&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 20:27:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-start-quot-C-quot-functions-from-HCS12-assembler/m-p/138155#M2711</guid>
      <dc:creator>Gizzzmo</dc:creator>
      <dc:date>2006-06-05T20:27:29Z</dc:date>
    </item>
  </channel>
</rss>

