Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. After executing the following instruction, what is in Register D? 7. Write an assembler directive instruction sequence to place the value 27h in each
1. After executing the following instruction, what is in Register D? 7. Write an assembler directive instruction sequence to place the value 27h in each of the memory locations 49, 4A, and 4B Memory LDD $2001 Location 2000 2001 2002 2003 Contents 2A F3 45 60 8. Write an instruction sequence to divide the unsigned 16 bit number at $2000 - $2001 by the 16 bit unsigned number at $2003 - S2004 and store the whole number result starting at a $2004 and the remainder startig at $2014 9. After running the following program, what values are in 2. What is in Register A after each instruction is executed? Register A Memory location $1010 Memory location $1005 LDAA #10 Memory Location Contents LDAA #$12 ldaa #11 staa $1000 idaa #33 staa $1005 adda $1000 suba #5 staa $1010 3. List the eight HCS12 registers and how many bits are in each. 4. Write an instruction sequence to convert the eight bit ASCII number stored at hex 3000 to binary and place the result back in hex 3000 5. After executing the following instruction, what is in the: X register 10. a) Write an assembler directive instruction(s) to store data values 27u and 32u at $2000 and $2001 in mcmory b) Then writc an instruction scquence to start a program at S2010 that adds the two valucs and puts the result in S2020 and return to the Debug monitor c) Then write a Debug Monitor instruction to display the result. A register Adda 1,+x Starting values are Xreg -2002, A register 5 Me Locationn 2000 2001 2002 2003 Contents 2A F3 45 60 6. Write an instruction sequence to subtract the three-byte number starting at hex 2015 from the three-byte number starting at hex 201A and store the answer in hex 2020
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started