Not sure I remember, but I think the comparators on that chip are under the
CM1CON0 and CM2CON0 registers. And A4 is open collector.
http://www.picbasic.co.uk/forum/showthread.php?t=562

You may want to look at the inc file in MPASM to be sure.