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 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
Get step-by-step solutions from verified subject matter experts
