Is there a macro to return the status of the I (global int enable) bit in the status register?
Or do you have to roll your own assembly language function?
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.
Thanks. I will do a search for it in the HCS08 version of codewarrior, or see if I can port it over.
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?
Retrieving data ...