veiledcavalier
Member level 5
- Joined
- Feb 26, 2006
- Messages
- 92
- Helped
- 7
- Reputation
- 12
- Reaction score
- 4
- Trophy points
- 1,288
- Location
- Alexandria-EGYPT
- Activity points
- 1,906
picbasic pro problem
elslam alykom,
i am working in a project using pic 16f628 and the pic basic compiler,
i have a problem with the data coming from PORTB4,5,6,7 ,in assembly
i used to make MASKING :
elslam alykom,
i am working in a project using pic 16f628 and the pic basic compiler,
i have a problem with the data coming from PORTB4,5,6,7 ,in assembly
i used to make MASKING :
Code:
num1 equ oxoc
.
.
.
SWAPF PORTB,w
ANDLW 0x0F
MOVWF num1
the function SWAPF ins. is like that:
befor: 0000 1111
\ /
/ \
after : 1111 0000
i don't find an instruction in the pic basic pro to do that fun.
if any one knows how plz post
thanks in advance.