Using CPU flags in C

jh--- via Gcc-help <[email protected]>
Newsgroups gmane.comp.gcc.help
Message-ID <[email protected]>
Hi,

I don't really know where to look for this information.
Is it possible to use the CPU status flags to communicate information 
between inline assembly and the normal C control flow?
For example, an asm statement would set the Z flag and then the C code 
would jump (for example with beq or bne in the case of ARM) without 
using any additional variable and comparison instruction. Using a dummy 
variable is no issue if the generated code is just the conditional 
branch instruction.

Best regards,
JH
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.