Hello,
For 8-bit MCUs there is the function __isflag_int_enabled() that returns the status if the I-bit. The prototype is within "intrinsics_HC08.h". There are also similar functions for returning the status of the carry flag, the half carry flag, and the external interrupt pin.
Regards,
Mac
Hello,
For 8-bit MCUs there is the function __isflag_int_enabled() that returns the status if the I-bit. The prototype is within "intrinsics_HC08.h". There are also similar functions for returning the status of the carry flag, the half carry flag, and the external interrupt pin.
Regards,
Mac
Hello
Function __isflag_int_enabled() is an intrinsic function of the HC08, HCS08 and RS08 compiler.
If you are targeting another MCU it might not be available.
By the way which MCU are you targeting?
CrasyCat