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

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

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!