For HC08 V5.1.
possibilities:
- upgrade :smileyhappy:
- put the declarations of the methods in some header file.
Here are the declarations (basically also what's in intrinsics_hc08.h):
char __isflag_carry(void);
char __isflag_half_carry(void);
char __isflag_int(void);
char __isflag_int_enabled(void);
There is also one bug in this area fixed in the compiler in HC08 V6.0 (not sure about state of V5.1 compiler),
out of the compiler release notes:
>- MTWX22355: HC08 intrinsics not working with the -Ont switch.
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.
Daniel