Determine the contents of register A and B in hexadecimal f
Determine the contents of register A and B ( in hexadecimal form) at the end of each assembly language program listed below. ( show your work and box the final result )
LDAA #$0A
STAA $1B
LDAB #$1B
STAB $0A
ADDA #$1B
ADDA $0A
ABA
SUBB #$0A
SUBB $0A
SBA
DECA
INCB
COMB
L1 BRA L1
Solution
Here\'s your answer:
A   251
 B   5
 D   $fb05
 X   $0000
 Y   $0000
 SP $0000
 PC $c010
 CC %11011001

