Question: Problem 1 [10 points] Consider the following assembly program. ROMStart RAMStart N EQU $4000 EQU $1000 EQU 13 VALUE ORG RAMStart DS.B 1 ORG ROMStart

 Problem 1 [10 points] Consider the following assembly program. ROMStart RAMStart

Problem 1 [10 points] Consider the following assembly program. ROMStart RAMStart N EQU $4000 EQU $1000 EQU 13 VALUE ORG RAMStart DS.B 1 ORG ROMStart Entry: _Startup: i1 :2 CLR VALUE LDS #$ 4000 LDAB #N LDX #NUMS ;3 MORE: BRA Ll: L2: BRCLR 1,X+,224,L1 L2 INC VALUE DECB BNE MORE :5 ;6 ; 7 ;8 : 9 ;10 ;11 HERE: BRA HERE ;12 ORG $4100 ;define some unsigned integer numbers NUMS: DC.B 10, 20, 12, 133, 18, 16, 37, 32, 111, 0, 2, 3, 88 ;Interrupt Vectors ORG $FFFE DC.W Entry ; Reset Vector Answer the following questions: 1. What are the addressing modes used in lines 2, 6, 7 and 9? 2. What is the final value stored in VALUE and register X in hexadecimal? 3. In one sentence, what does this program do? Problem 1 [10 points] Consider the following assembly program. ROMStart RAMStart N EQU $4000 EQU $1000 EQU 13 VALUE ORG RAMStart DS.B 1 ORG ROMStart Entry: _Startup: i1 :2 CLR VALUE LDS #$ 4000 LDAB #N LDX #NUMS ;3 MORE: BRA Ll: L2: BRCLR 1,X+,224,L1 L2 INC VALUE DECB BNE MORE :5 ;6 ; 7 ;8 : 9 ;10 ;11 HERE: BRA HERE ;12 ORG $4100 ;define some unsigned integer numbers NUMS: DC.B 10, 20, 12, 133, 18, 16, 37, 32, 111, 0, 2, 3, 88 ;Interrupt Vectors ORG $FFFE DC.W Entry ; Reset Vector Answer the following questions: 1. What are the addressing modes used in lines 2, 6, 7 and 9? 2. What is the final value stored in VALUE and register X in hexadecimal? 3. In one sentence, what does this program do

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!