From the looks of it and since I'm at the office currently and cannot really spend time on it -- all the variables need to be moved to the prp, G89 - no idea, just delete it and the whole function if you don't use it.
Since it's been quite some time since I last dealt with the old SC PP format - I think that the prp had the same format as the new format meaning that simply finding the variables near the top of the new file and cut-pasting / moving these lines to the prp. If that does not help, drop me a line and I will take a look when I have the time.