<?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>CodeWarrior for MCUのトピックRe: S12XDP512, CW4.5, GPAGE, interrupts</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12XDP512-CW4-5-GPAGE-interrupts/m-p/136142#M1816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Or alternatively, use the -CpGPAGE option.&lt;BR /&gt;-CpGPAGE=0x10&lt;BR /&gt;&lt;BR /&gt;When this option is used, the compiler will generate the register save code for GPAGE in all interrupt functions, but only if the GPAGE could possibly be modified.&lt;BR /&gt;&lt;BR /&gt;The #pragma TRAP_PROC SAVE_ALL_REGS has the drawback that the compiler really saves all page registers, even the ones not used.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;P&gt;Message Edited by CompilerGuru on &lt;SPAN class="date_text"&gt;05-18-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;02:38 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 May 2006 02:38:02 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2006-05-19T02:38:02Z</dc:date>
    <item>
      <title>S12XDP512, CW4.5, GPAGE, interrupts</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12XDP512-CW4-5-GPAGE-interrupts/m-p/136140#M1814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there any way to get the compiler to push the GPAGE register when invoking functions or interrupts?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm am trying to increment a globally addressed variable from an interrupt, which is altering the GPAGE, and therefore crashing the rest of the code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;M&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 05:36:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12XDP512-CW4-5-GPAGE-interrupts/m-p/136140#M1814</guid>
      <dc:creator>gravity</dc:creator>
      <dc:date>2006-05-16T05:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: S12XDP512, CW4.5, GPAGE, interrupts</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12XDP512-CW4-5-GPAGE-interrupts/m-p/136141#M1815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I found this in Codewarrior Help. I think it is what you are looking for.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#pragma TRAP_PROC&lt;A target="_blank"&gt;&lt;/A&gt;&lt;P&gt;Which page registers are saved is determined by the TRAP_PROC pragma. The syntax of this pragma is&lt;/P&gt;&lt;PRE&gt;#pragma TRAP_PROC [SAVE_ALL_REGS | SAVE_NO_REGS]&lt;/PRE&gt;&lt;A target="_blank"&gt;&lt;/A&gt;&lt;A target="_blank"&gt;&lt;/A&gt;&lt;P&gt;If TRAP_PROC SAVE_ALL_REGS is used, all page registers are saved, whether or not they are used in the interrupt procedure. If TRAP_PROC SAVE_NO_REGS is given, no page registers are saved. If only TRAP_PROC is given, all page registers specified with the -Cp option are saved. It is up to you to ensure that no other page registers are modified.&lt;/P&gt;&lt;P&gt;&lt;B&gt;NOTE&lt;/B&gt;&lt;/P&gt;&lt;A target="_blank"&gt;&lt;/A&gt;&lt;P&gt;The page registers are changed by paged data accesses. For details, see the &lt;A href="mk:@MSITStore:C:/Program%20Files/Freescale/CW%20for%20HC12%20V4.5/Help/Compiler_HC12.chm::/Compiler_HC12-13-11.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Paged Variables&lt;/A&gt; section.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 10:09:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12XDP512-CW4-5-GPAGE-interrupts/m-p/136141#M1815</guid>
      <dc:creator>Technoman64</dc:creator>
      <dc:date>2006-05-16T10:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: S12XDP512, CW4.5, GPAGE, interrupts</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12XDP512-CW4-5-GPAGE-interrupts/m-p/136142#M1816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Or alternatively, use the -CpGPAGE option.&lt;BR /&gt;-CpGPAGE=0x10&lt;BR /&gt;&lt;BR /&gt;When this option is used, the compiler will generate the register save code for GPAGE in all interrupt functions, but only if the GPAGE could possibly be modified.&lt;BR /&gt;&lt;BR /&gt;The #pragma TRAP_PROC SAVE_ALL_REGS has the drawback that the compiler really saves all page registers, even the ones not used.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;P&gt;Message Edited by CompilerGuru on &lt;SPAN class="date_text"&gt;05-18-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;02:38 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 02:38:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12XDP512-CW4-5-GPAGE-interrupts/m-p/136142#M1816</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-05-19T02:38:02Z</dc:date>
    </item>
  </channel>
</rss>

