Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Assume that MYREG = 85H. Indicate if it skips after compare is executed in each

ID: 3784999 • Letter: A

Question

Assume that MYREG = 85H. Indicate if it skips after compare is executed in each of the following cases:

a)LDAA #$90                                                                   b) LDAA #$70

CMPA #$85                                                                      CMPA #$85

BHI   OVER                                                                        BLO   OVER

INCA                                                                                  INCA

ADDA #$2                                                                        ADDA   #$2

OVER   …………                                                                    OVER ……………

Explanation / Answer

Solution:

a)LDAA #$90

CMPA #$85

BHI   OVER

INCA

ADDA #$2

OVER

85<90 No Skip

b) LDAA #$70

CMPA #$85    

BLO OVER

INCA

ADDA #$2

OVER

85>70 Skip

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote