We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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).
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
Many 51 devices have also a F1 (PSW.1) flag. You may use it instead of F0.
erik
I have downloaded the last version of sdcc compiler. I have checked the source code of the libraries and, yes, they also use the FO flag in some math functions.
Oh! And I thank that use F0 was a good idea!
Javier
Viktor
The problem is that I cannot change the bootloader.
I posted : "The F0 flag is, for every '51 toolset I know (and I know quite a few) "reserved for compiler use"." sdcc compiler .... they also use the FO not one of those I know, this just confirms the generality of "F0 is a compiler flag"