I am implementing a project where i have to do some BCD arithmetic.Is there any register in the LPC which which contains the carry flag, like the ones we have in 8051[PSW].Or is there any other method to do it?
Thanks in advance!
Is there any register in the LPC which which contains the carry flag
Yes. As you'll no doubt have noticed when reading the core documentation, it's a standard Cortex feature.
A processor without support for carry would be quite problematic to use. Think about what code the compiler should produce to handle different comparison operators...
And how fun to implement support for 64-bit integers on a 32-bit processor.