Possibly one of the address lines is dry joint so wrong address.

Found this on forum which could be useful

https://www.picbasic.co.uk/forum/sho...C-Ping-program