8051 code to use R4(LSB) and R5(MSB) as a single 16bit counter, and increment the pair untill number is FFFFh

Logic is too simple. For better understanding, I would suggest you something. Use a scientific calculator and in hex mode go on adding 0x01 each time. And then study my code. You will have a better understanding.


Enjoy coding…..XD