Hello Xbot,
You seem to have posted a similar question on the 16-bit forum, although this post references assembly, rather than C code. I believe this question has been answered within the other thread.
Please do not cross post what seem to be very closely related questions.
Regards,
Mac