This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Regarding C program convert to disassembly

Hello,
I have written simple program for subtraction in keil by selecting the LPC2148 from NXP family. When i observe the disassembly window my subtraction c program convert to instruction SUB R2,R0,R1 which is not affecting the flags. If i want to convert disassembly in to SUBS R2,R0,R1 which thing i require to do. How compiler decide whether it has to use SUB or SUBS when it convert to disassembly?

Parents Reply Children