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

Carry Flag in LPC ARM Cortex M3

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!

Parents
  • The Cortex-M3 core doesn't explicitly support BCD math (two nibbles, half-carry, etc), you'd have to do this more manually using standard ADD/ADC functionality and breaking down the nibbles.

    Review ALU design books/papers to understand the basic mechanics here.

Reply
  • The Cortex-M3 core doesn't explicitly support BCD math (two nibbles, half-carry, etc), you'd have to do this more manually using standard ADD/ADC functionality and breaking down the nibbles.

    Review ALU design books/papers to understand the basic mechanics here.

Children
No data