Question: ECE347 HW Basic Assembly use the HC12 Table to determine solutions to each of the following. ECE347 HW Basic Assembly PI 2 Use the course

ECE347 HW Basic Assembly

use the HC12 Table to determine solutions to each of the following.

ECE347 HW Basic Assembly use the HC12 Table to determine solutions to

ECE347 HW Basic Assembly PI 2 Use the course slides and the HC12 Instruction Table to determine solutions to each of the following. 1. Write a code segment that adds the immediate values $29 and $42, with the final result located in register A. Determine the value of the result. 2. Write a code segment that uses Tone instruction to add 1 to register B. 3. Write a code segment that uses one instruction to subtract 1 from register X, 4. Write a code segment that loads the value $1234 into register D. 5. Write a code segment that loads S54 into B, then stores the value in register B to address SA 100. Show the bracket notation used to indicate the contents and address, assuming the code has executed. 6. Write a code segment that loads $5678 into X. then stores the value in register X to address SD020. Show the bracket notation used to indicate the contents and addresses, assuming the code has executed. ECE347 HW Basic Assembly PI 2 Use the course slides and the HC12 Instruction Table to determine solutions to each of the following. 1. Write a code segment that adds the immediate values $29 and $42, with the final result located in register A. Determine the value of the result. 2. Write a code segment that uses Tone instruction to add 1 to register B. 3. Write a code segment that uses one instruction to subtract 1 from register X, 4. Write a code segment that loads the value $1234 into register D. 5. Write a code segment that loads S54 into B, then stores the value in register B to address SA 100. Show the bracket notation used to indicate the contents and address, assuming the code has executed. 6. Write a code segment that loads $5678 into X. then stores the value in register X to address SD020. Show the bracket notation used to indicate the contents and addresses, assuming the code has executed

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!