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,

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

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!