Question: 1. Write a subroutine in PIC18F assembly language to compute 10 Assume the X's are unsigned 8-bit and stored in consecutive locations starting at Ox50,

 1. Write a subroutine in PIC18F assembly language to compute 10

1. Write a subroutine in PIC18F assembly language to compute 10 Assume the X's are unsigned 8-bit and stored in consecutive locations starting at Ox50, and Z is 8-bit. Also, assume FSR1 points to the X,'s. Write the main program in PIC18F assembly language to perform all initializations (FSR1 to Ox50, STKPTR to 0x20), call the subroutine, and then compute Z/8. Discard remainder of Z/8. Assu e data are already loaded in data registers. (25 points) 1. Write a subroutine in PIC18F assembly language to compute 10 Assume the X's are unsigned 8-bit and stored in consecutive locations starting at Ox50, and Z is 8-bit. Also, assume FSR1 points to the X,'s. Write the main program in PIC18F assembly language to perform all initializations (FSR1 to Ox50, STKPTR to 0x20), call the subroutine, and then compute Z/8. Discard remainder of Z/8. Assu e data are already loaded in data registers. (25 points)

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!