Assume that MYREG 85H Indicate if it skips after compare is

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 ……………

Solution

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

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 BL

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site