When you call find_pixel, what exactly gets returned? HL points to the first byte containing (b,c), right? But what is returned in the A register?