This code was probably not intended to run on an ATmega2560, and if you try, it won't give meaningful results.