I have a lab question that says to write a program that adds the digits of your D#. The instructor clarified the question to use dc.b. In his example he used D_NUM dc.b 1,2,3,4,5,6,7,8. When I asked him what the D# should be, he replied it will be different for everyone. What is my D#?
After that the code is something like:
LDAA D_NUM
ADDA D_NUM+1
ADDA D_NUM+2
ADDA D_NUM+3
ADDA D_NUM+4
ADDA D_NUM+5
ADDA D_NUM+6
ADDA D_NUM+7