Question: 1. (10 points) Write HCS12 assembly code, including an ORG directive, to continuously copy input from Port H to Port B, using only load/store instructions

1. (10 points) Write HCS12 assembly code, including an ORG directive, to continuously copy input from Port H to Port B, using only load/store instructions (plus a branch). Remember to set pin directions as needed. 2. (10 points) Repeat #1, using only MOVB instructions (and a branch). 3. (10 points) Write HCS12 assembly code to make the even bits of PORTA inputs and the odd bits of PORTA outputs. Use only bit-set and bit-clear instructions. (No need for ORG on this one.) 1. (10 points) Write HCS12 assembly code, including an ORG directive, to continuously copy input from Port H to Port B, using only load/store instructions (plus a branch). Remember to set pin directions as needed. 2. (10 points) Repeat #1, using only MOVB instructions (and a branch). 3. (10 points) Write HCS12 assembly code to make the even bits of PORTA inputs and the odd bits of PORTA outputs. Use only bit-set and bit-clear instructions. (No need for ORG on this one.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
