looking at the code I think a conversion of all the HSEROUT?C macro calls to HSEROUT2?C

eg
Code:
ANSIstart
    HSEROUT2?C	27
    HSEROUT2?C	"["
    return
might be a good start