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.
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.