Question: I am having a problem with two practice problems. I read the Appendix from the HCS12 Microcontrollers and Embedded Systems, 1st Edition and could not
I am having a problem with two practice problems. I read the Appendix from the HCS12 Microcontrollers and Embedded Systems, 1st Edition and could not figure out how to get the answer. I used Freescale Codewarrior and create a program to get the value of $A5 to match answer choice. However, The result shows that I accumulator A value of $22 close to the answers, but it does not show the $A5 and B4 in the memory. I need help to solve this problem and it require a explanation. Due tonight. Thank you
Assume that X = $1052, A = $22, M[1050] = $B4, M[1052] = $5A, After LDAA 2,X-:
X = $1052, A = $5A, M[1050] = $B4, M[1052]=$5A
X = $1050, A = $5A, M[1050] = $B4, M[1052]=$5A
X = $1052, A = $B4, M[1050] = $B4, M[1052]=$5A
X = $1050, A = $B4, M[1050] = $B4, M[1052]=$5A
Assume that X = $1052, A = $22, M[1050] = $B4, M[1052] = $5A, After LDAA 2,-X:
X = $1050, A = $5A, M[1050] = $B4, M[1052]=$5A
X = $1050, A = $B4, M[1050] = $B4, M[1052]=$5A
X = $1052, A = $B4, M[1050] = $B4, M[1052]=$5A
X = $1052, A = $5A, M[1050] = $B4, M[1052]=$5A
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
