Quote Originally Posted by tazntex View Post
myvar var byte
portb = myvar
As long as all pins on PORTB are set to OUTPUTs, which they're not upon RESET...on most, if not all, PICs, as noted in most, if not all, datasheets, in the 'I/O Ports' section, and as long as said pins are not designated for another use (i.e. PortA, analog vs. digital usage).