question archive Describe the branch instructions associated with CCR bits
Subject:Computer SciencePrice:3.86 Bought12
Describe the branch instructions associated with CCR bits.
In CCR, branch instructions cause program flow to change when specific condition is met.
Branches are helpful for:
A program branch can be taken when a specific bit in the CCR register is in a specific state (0 or 1). We use:
Some branch based commands:
Example: Assume X contains $50 and Y contains $100
Loop:
Ldaa 1,x+
Ldab 1,y+
Aba
Bcs Loop1 ; Branch if the carry bit is 1
--
--
Bra Loop
Loop1:
Staa $100