Hi, WJS

Having had a quick look to this program ...

1) Best solution is to rewrite it into PBP ... you could be surprised about the length of the PBP source you'll get . Source is well commented ... so, there's no headache to fear !!!

Easy to say ??? ... I just did translate such a SLA Charger "C" program from a Z8 Encore processor to a 16 F 876 Pic, With PBP ... really a child's game ...

2) you simply could add some assembler routines ( lots, widely commented, available on the web ...) by " cut and paste " and very slight adjustments.


Of course you could include most of the existing asm program into a PBP program ... but that will lead you to examine asm listing to cut all what PBP already does ...
solution 1) will become obvious to you, then ...

Alain