Write a code fragment to load the numbers in addresses $2001 through $2004 successively into Accumulator A. Each time you load a number, increment the contents of Index Register X if the number was zero. (Note that when you do a load, the Z-bit is
set or cleared depending on whether the number loaded is 0 or not.)
5. For the following code, explain which statements are instructions, which are assembly directives, which are labels, and which are comments:
;
this program adds 3 to address $2000 and increments Accumulator B org $4000 ldaa $2000 adda #3 ; add 3 to (A) staa $2000 incb ;
increment B
6. For each instruction in problem 5, indicate the addressing mode and effective address, if any.