tom12sg
Member level 2
assembly language in c in keil
Hi,
I need to set a flag in an assembly routine in a file so that the C main function in another file can monitor that this function has been activated.
This flag will be a global bit.
How can I declare that in C and reference to this flag in assembly file? or the other way round.
I think on the C side is declare something like this:
volatile bit flag_triggered;
but how to import this flag on the assembly side?
Thanks!
Hi,
I need to set a flag in an assembly routine in a file so that the C main function in another file can monitor that this function has been activated.
This flag will be a global bit.
How can I declare that in C and reference to this flag in assembly file? or the other way round.
I think on the C side is declare something like this:
volatile bit flag_triggered;
but how to import this flag on the assembly side?
Thanks!