To detect negative numbers why do programming use BCC (check carry bit ) instead of BNE ( check N bit , which is obviously more straightforward ) ?
BNE == Branch Non Equal. You can check zero or non-zero. Not negative.
Thank you , i thought that , BNE == branch negative
ReqDePache said:i thought that , BNE == branch negative
What made you think that?
I guess that's because I was familiar with SIC Assembly a period of time and they used N for negative .
That's the thing with assemblers: there is no standard - they are all different!
You must always go to the specific documentation for the particular assembler.
You might want to read document ARM DDI 0406C.c ;-)
View all questions in Cortex-M / M-Profile forum