First page Back Continue Last page Overview Text
Why is the clc instruction needed in the above program? _______
Where is the result stored when this program executes? _______
In this program, accumulator B performs the function of a loop counter and register X contains the index into the data. Alternatively, register X could be used as the loop counter by including a check that would fall out of the loop when the value in X is -1 ($ffff).
The program structure is do-while.