<?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: &amp;quot;BIL&amp;quot; assembler instraction in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140930#M2582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks guys,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As&amp;nbsp;i say when i write&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;if (__isflag_int()) {  Data=0;}&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I get Error Message :&lt;/DIV&gt;&lt;DIV&gt;ERROR&amp;nbsp; : C1801:&amp;nbsp; Implicit parameter-declaration for '__isflag_int'&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But when i add the Prototype it's work OK.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 08:41:41 GMT</pubDate>
    <dc:creator>Tzvi</dc:creator>
    <dc:date>2020-10-29T08:41:41Z</dc:date>
    <item>
      <title>"BIL" assembler instraction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140917#M2569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;How do i write in C style the "BIL" assembler instraction ?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 15:50:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140917#M2569</guid>
      <dc:creator>Tzvi</dc:creator>
      <dc:date>2007-07-24T15:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instraction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140918#M2570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;You forgot &lt;B&gt;THE&lt;/B&gt; important information: what is the target microcontroller ?&lt;BR /&gt;&lt;BR /&gt;If I look at S12X CPU, the BIL instruction is not in the list.&lt;BR /&gt;&lt;BR /&gt;Generally speaking you have many threads on the forum which explains how to integrate ASM code within C.&lt;BR /&gt;Please search these.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 16:16:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140918#M2570</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-07-24T16:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instraction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140919#M2571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Are you using CodeWarrior for HC08 V5.x?&lt;/DIV&gt;&lt;DIV&gt;HC08 compiler supports some intrinsic functions allowing to check state of bits in the CCR.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The intrinsic function __isflag_int() allows to test the state of the IRQ flag.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please refer to {Install}\Help\PDF\Compiler_HC08.pdf, chapter "Using the Compiler", section "ANSI-C Frontend" -&amp;gt; "Implementation Features" -&amp;gt; "Intrinsic Functions" for more information on available intrinsics.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 16:37:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140919#M2571</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-07-24T16:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instruction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140920#M2572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Bonjour Cat,&lt;BR /&gt;&lt;BR /&gt;You know what "BIL" instruction is ?&lt;BR /&gt;I'm curious.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 17:11:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140920#M2572</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-07-24T17:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instraction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140921#M2573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;thanks CrasyCat ,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;but How i use the intrinsic function __isflag_int() ?&lt;/DIV&gt;&lt;DIV&gt;Do i need to add a H file ?&lt;/DIV&gt;&lt;DIV&gt;I read the PDF file but it's not say how to use it!&lt;/DIV&gt;&lt;DIV&gt;when i write&lt;/DIV&gt;&lt;DIV&gt;if (__isflag_int() )&amp;nbsp; XX++;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;i got compiler Error!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Tzvi&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 17:48:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140921#M2573</guid>
      <dc:creator>Tzvi</dc:creator>
      <dc:date>2007-07-24T17:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instruction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140922#M2574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;BIL - Branch if IRQ Pin Low&lt;/DIV&gt;&lt;DIV&gt;BIH - Branch if IRQ Pin High&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I use HCS08 Family microcontroller&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 17:54:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140922#M2574</guid>
      <dc:creator>Tzvi</dc:creator>
      <dc:date>2007-07-24T17:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instraction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140923#M2575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Which CW version do you use?&lt;BR /&gt;Which compiler errors do you get? Do you have a declaration of the function? You need one.&lt;BR /&gt;For HC08 V6.0 there is a "intrinsics_hc08.h".&lt;BR /&gt;&lt;BR /&gt;Here's a snippet which works for me for the HC08 V6.0 release.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;#include "intrinsics_hc08.h"char x;void main(void) {  for(;;) {    if (__isflag_int()) { x++; }  }}&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;--&lt;BR /&gt;Alban Edit: code format via SRC to avoid smileys&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;2007-07-24&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;12:15 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:41:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140923#M2575</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2020-10-29T08:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instruction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140924#M2576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks Tzvi,&lt;BR /&gt;&lt;BR /&gt;I didn't know these instructions !&lt;BR /&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CW816COMM&amp;amp;message.id=2963#M2963" target="_blank"&gt;Compiler Guru answer&lt;/A&gt; is spot on.... once again !!!&lt;BR /&gt;&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 18:14:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140924#M2576</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-07-24T18:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instraction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140925#M2577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I use CW 5.7.0 version , and in that version there is no "intrinsics_hc08.h" include file familiar !&lt;/DIV&gt;&lt;DIV&gt;can you send me the files ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Tzvi&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 19:00:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140925#M2577</guid>
      <dc:creator>Tzvi</dc:creator>
      <dc:date>2007-07-24T19:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instraction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140926#M2578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To retrieve the actual CodeWarrior version&amp;nbsp;info, follow these steps:&lt;BR /&gt;&amp;nbsp; - Start CodeWarrior&lt;BR /&gt;&amp;nbsp; - Select Help -&amp;gt; About Freescale CodeWarrior&lt;BR /&gt;&amp;nbsp; - Click on "Install Products"&lt;BR /&gt;&amp;nbsp; - CodeWarrior version used is displayed on top in the Installed Products dialog.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;That is the version number we need.to identify the release you are using.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 19:24:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140926#M2578</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-07-24T19:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instraction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140927#M2579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I probably use CW version 5.1 , But for be sure I add the sreensave of the Installed Products&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Tzvi&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 19:44:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140927#M2579</guid>
      <dc:creator>Tzvi</dc:creator>
      <dc:date>2007-07-24T19:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instraction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140928#M2580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Yes you are using V5.1.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;With this version there is no need to specify any include file.&lt;/DIV&gt;&lt;DIV&gt;Writing&amp;nbsp; following code works for me.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I get a warning message that there is no prototype available, but disassembly code shows BIL instruction.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;if (__isflag_int()) {  Data=0;}&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;If you want to remove the warning, you need to define a prototype for the function __isflag_int.&lt;/DIV&gt;&lt;DIV&gt;Prototype will look as follows:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; char __isflag_int(void);&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:41:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140928#M2580</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2020-10-29T08:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instraction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140929#M2581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;For HC08 V5.1.&lt;BR /&gt;possibilities:&lt;BR /&gt;- upgrade :smileyhappy:&lt;BR /&gt;- put the declarations of the methods in some header file.&lt;BR /&gt;Here are the declarations (basically also what's in intrinsics_hc08.h):&lt;BR /&gt;&lt;BR /&gt;char __isflag_carry(void);&lt;BR /&gt;char __isflag_half_carry(void);&lt;BR /&gt;char __isflag_int(void);&lt;BR /&gt;char __isflag_int_enabled(void);&lt;BR /&gt;&lt;BR /&gt;There is also one bug in this area fixed in the compiler in HC08 V6.0 (not sure about state of V5.1 compiler),&lt;BR /&gt;out of the compiler release notes:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;- MTWX22355: HC08 intrinsics not working with the -Ont switch.&lt;BR /&gt;&lt;BR /&gt;Basically the compiler did not recognice them with -Ont, so with an older compiler, so can either not use -Ont with intrinsics, or you have to actually define somewhere as real functions. The library does not contain defintions of those functions, so they are either recognices as intrinsics and expanded to a BIL (or whatever), or the linking does fail. Note that suboptions of -ont like -ont=a did actually work with older compilers, just plain -ont did not.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 19:57:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140929#M2581</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2007-07-24T19:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instraction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140930#M2582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks guys,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As&amp;nbsp;i say when i write&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;if (__isflag_int()) {  Data=0;}&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I get Error Message :&lt;/DIV&gt;&lt;DIV&gt;ERROR&amp;nbsp; : C1801:&amp;nbsp; Implicit parameter-declaration for '__isflag_int'&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But when i add the Prototype it's work OK.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:41:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140930#M2582</guid>
      <dc:creator>Tzvi</dc:creator>
      <dc:date>2020-10-29T08:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instraction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140931#M2583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I question whether the __isflag_int() function can do the same job as the BIH or BIL assembly instructions.&amp;nbsp; My understanding is that the function returns the state of the I-bit within the CCR.&amp;nbsp; If so, this is not the same as the assembly instructions, that&amp;nbsp;read the state of the INT &lt;U&gt;pin&lt;/U&gt;.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Depending on the MCU type in use, if the INT pin is a dedicated pin, I don't see an alternative to the use of inline assembly code.&amp;nbsp; However, if the INT pin is a secondary use of a port pin, the state of the port pin might be read instead.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 10:23:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140931#M2583</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-07-25T10:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: "BIL" assembler instraction</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140932#M2584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Compiling the following ANSI C code with CodeWarrior for HC08&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;if (__isflag_int()) {  data++ ;}&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;You get following code generated:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;   38:  if (__isflag_int()) {  0004 2e06     [3]             BIL   LC ;abs = 000c   39:    data++ ;  0006 3c01     [4]             INC   data:1  0008 2602     [3]             BNE   LC ;abs = 000c  000a 3c00     [4]             INC   data  000c          [5]     LC:     &lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;So this should be equivalent to using BIL directly in inline assembler.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:41:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-BIL-quot-assembler-instraction/m-p/140932#M2584</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2020-10-29T08:41:43Z</dc:date>
    </item>
  </channel>
</rss>

