Question: Exercise 4 The following program reads the value of temperature stored in the register ADRIL and store the corresponding result in accumulator d. ADRIL EQU

Exercise 4 The following program reads the value of temperature stored in the register ADRIL and store the corresponding result in accumulator d. ADRIL EQU $091 Array_temp DC.W $512, $A 10, $C25, $3104, $B027 Ldab ADRIL Idx #Table Ida b,x de Questions: 1. What would be the content of the accumulator d, in Hexadecimal representation, in case: a. ADRIL = 1 b. ADRIL = 3 2- Using "deca" and "bne assembly instructions, modify the above program in such a way that the three assembly instructions are executed 20 times. Exercise 3 (Additional exercises) Give the machine code corresponding to the following HCS12 assembly language program. Indicate the contents of memory at each address after the program is loaded into memory. ORG SODOO MAIN LDX #MAIN STX $3000 CPX $10 BHS HERE INX HERE NOP
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
