Question: Write a subroutine that computes the CHECKSUM for a data table (by XO Ring all the data bytes). The inputs to the subroutine are a

Write a subroutine that computes the CHECKSUM for a data table (by XO Ring all the data bytes). The inputs to the subroutine are a pointer to the table in FSR1 and the number of elements in NUM. The output is the CHECKSUM in the WREG. which is also stored at the end of the table. a) Draw a flowchart for the subroutine (and indicate any registers used). b) Write the assembly language for the subroutine (called by a main program) and simulate using the sample data table: 24, 65, F0. c) Your solution should include the assembler listing and an annotated screen capture of the simulator showing the final register values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
