Well it's beta but I always enjoy sharing ideas and always fun to have food for thought.
This code snippet will be in the next issue of JPUG but I thought I'd share it here for review.
It uses the debug pins and USART pins and I'll write a routine to show the status on the Junebugs LEDs.
It also depends on the 4.7K pulldowns on DIP switch switches 2,3,4,5 and the Junebug programmer normally floats PGC & PGD after programming.