Put one dip on a port. Then read the whole PORT into a variable.
Code:
dip1=PORTB
dip2=PORTC
Read this thread, post #2
http://www.picbasic.co.uk/forum/show...ight=read+port