I have a counter that counts number of bytes in one line.
When that counter reaches 16 bytes line is printed.
I need to print the 16 bit address of the first byte printed(in HEX).
eg.
first line 0000
second 0010
third 0020
0030 etc.
All i have is counter that has 16 in it. And I need 0010.
Next time when it reaches 32 it must be 0020.
Line 17 will be 0100. etc
( I already have a function that will convert to ASCII Hex)

Any help is welcomed.