Announcement

Collapse
No announcement yet.

[PPC ASM] add, addic., addc. What's the difference?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [PPC ASM] add, addic., addc. What's the difference?

    Does anyone know what the carrying (add -> addc) and recover (addic -> addic.) attributes actually do?
    (The meaning and usage of add, addi, addis and so on is totally clear to me)
    Last edited by CosmoCortney; 08-29-2015, 06:54:51 AM.
    My Website
    Hacking YouTube Channel


    No requests, please

  • #2
    http://www.8052.com/51add
    The Hackmaster

    Comment


    • #3
      That's not the manual for the right chip.

      On PowerPC, IIRC, the "with carrying" and "record" instructions just set more flags in condition registers. That's really it. I think addic and addic. take the same number of cycles as addi, so the only reason to choose one over the other is if you need the condition information from the add operation, or if you prefer to retain whatever was put there by a previous operation.

      Comment

      Working...
      X