-
info string
Hi,
I wanted to know the meaning of the symbols of these two instructions:
clrf TRISB ^ 0x080
the symbol that is between trisb and 0x080.
-----------------------------------------------------------------
movwf TRISB & 7FH
the symbol & followed by the hex 7fh that purpose has. Me if I have to plan the port in input or output I use only the binary notation or hex. And this 7Fh would have written it how binary: 01111111
thanks
chip20
-
^ is for a bitwise EXCLUSIVE OR
& is for a bitwise AND
chip... if you haven't already guessed, this is a forum for MeLabs PICBasic compilers... the answers to most of your Assembler questions will be found in the HELP files located in Microchips MPLab IDE. Go download it from the Microchip website - it's FREE.
The answers to your questions above are found in detail in the MPLab Help file section "Expression Syntax and Operation" subsection "Arithmetic Operators and Precedence".
-
Ok
Ok Melanie. Thanks for the answers that you have given me. I follow your suggestion.
Kiss
by
chip