To check if two pins are high you can simply do two checks,
Code:
WaitBoth btfss PortA,0 ; test if portA bit 0 is set
goto WaitBoth ; if bit 0 cleared then wait
btfss PortA,3 ; test if portA bit 3 is set
goto WaitBoth ; if bit 3 cleared then wait
; it will only get to here if both PortA,0 and PortA,3 are both high
You can also AND the port,
Code:
WaitBoth movfw PortA ;get value on port a
andlw b'00001001' ;keep bits 3 and 0
sublw b'00001001' ;sub bits 3 and 0
btfss STATUS,Z ;will only be zero if both set
goto WaitBoth ;if not, wait
; it will only get to here if both PortA,0 and PortA,3 are both high
The first version is shorter and (maybe) easier to understand. The second version will be more versatile when you need to do more complex things or check 3 bits etc.