This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

F0 flag use by Keil libraries

Hello.

I have a bootloader that use F0 flag to indicate if the bootloader is executing (F0 = 1) or if the application is executing (F0 = 0).

But some Keil library functions modify this flag (float division, 32-bits signed long division, etc).

Somebody can help me with the full list of functions that modify this flag?

I cannnot modify the bootloader because the product is just in production (and sold out).

Parents
  • while this is raised in a Keil forum, I think this should be mentioned.

    The F0 flag is, for every '51 toolset I know (and I know quite a few) "reserved for compiler use".

    I have often suggested that F0 be used to indicate overflow on the return from arithmetic routines since this would not in any way upset current use that does not 'know' if overflow occurred and, at the same time, allow those using the revised versions to test this flag.

    Erik

Reply
  • while this is raised in a Keil forum, I think this should be mentioned.

    The F0 flag is, for every '51 toolset I know (and I know quite a few) "reserved for compiler use".

    I have often suggested that F0 be used to indicate overflow on the return from arithmetic routines since this would not in any way upset current use that does not 'know' if overflow occurred and, at the same time, allow those using the revised versions to test this flag.

    Erik

Children