Condition Checking
Use of flags or a condition code register add r1, r2, r3 ;; affects condition codes beq someplace ;; branches on Z-flag in CCR
- Condition Code flags are usually N (negative), Z (zero), C (carry), V (signed overflow)
- Simple branches test one flag; Complex branches test a boolean function involving multiple flags.
Use of General Purpose Registers add r1, r2, r3 beq r1, someplace ;; check value of r1