Hello..
i'm trying to port the "quadrature decoding" program to assembly.
The original thread is over here.

I'm running into a few problems

1>
coverting "new=PORTB & %11000000" to assembly

Code:
movf	PORTB,W
                         ANDLW	11000000   ;take in portB ,and with 11000000 and store in "W"
		movwf	_new	   ;load into "new" variable
The statement ANDLW 11000000 in assembly is written as ANDLW b'11000000'
However it doesnt compile if i put in ANDLW b'11000000'

2>how do i compare 2 variables "old_val = new_val" in assembly?

Thank you