Write the assembly code:
Assume, the program is to start at $C000.
The program is to sort a block of 8-bit data where the starting address of the data block is stored at location $8000/8001 and the 8-bit data where the starting address of the data block is stored at $8002. Note, it will take multiple passes through the data in order to put every byte in the proper order.