Re: Using CPU flags in C
Florian Weimer via Gcc-help <[email protected]>
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Message-ID | <[email protected]> |
> How is this code integrated into C? Would it be used like this? But
> can I get the -6 value at the same time?
> if(asm_add(36, -42)<0){
> printf("negative\n");
> }else{
> printf("positive\n");
> }
See the example I posted. You can use a bool variable.
Florian