I know it compiles OK, like with many other false promises, Hi-Tech PRO 9.80. OK, it's not perfect, lotsa warnings about implicit conversions between var types, but hey, it's primary operation in the first few lines of a small loop in Main() is to blink a LED. Should be not so hard for one to blink at any pin, PORTA, PORTB,PORTC are TRIS'd to 0, so every I/O pin should flirt with a LED, they are all set to dance together, en mass.
I would appreciate if anyone has a second or two and a vacationing PIC18Fx5X22 just waiting for a challenge, to burn the attached masterpiece all served up in one Intel .hex file, just to see if'n it will blink.
Note: Operation is with Vdd =5.0V, but that doesn't matter. No BOREN to bother with, no doggy WDT to bite your bits.
The crystal is an external 20MHz jewel of metal and quartz and I can see with my scope's eyes that its singing like a canary.
Yet there is light side to this story, the LED doth go on without a blink.
Yes, this .hex is inspired by The Simpsons.