Hi,
You should read user manual to find how to insert assembly code to your compiler, also you should need some knowledge on assembly instructions (use datasheet of PIC)
following is pseudo code for how to replace Button(PORTB,2,1,0) and use of asm;
IF (PORTB.2=0) then
delay4btn()
if (PORTB.2=0) then
// Your code for "if Button(PORTB,2,1,0)" is true
End if
End if
There delay4btn() is a procedure written in assembly for debounce-delay of switch.
sub procedure delay4btn()
asm
movlw 255
L1_start_check
decf Wreg,W
btfsc STATUS,Z
goto L2_exit_check
nop
nop
nop
nop
nop
nop
goto L1_start_check
L2_exit_check
end asm
END SUB
Hope this helps you,