info string


Closed Thread
Results 1 to 3 of 3

Thread: info string

  1. #1
    Join Date
    Dec 2005
    Posts
    21

    Default 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

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    ^ 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".

  3. #3
    Join Date
    Dec 2005
    Posts
    21


    Did you find this post helpful? Yes | No

    Default Ok

    Ok Melanie. Thanks for the answers that you have given me. I follow your suggestion.
    Kiss

    by
    chip

Similar Threads

  1. How about String Variables?
    By mytekcontrols in forum PBP Wish List
    Replies: 40
    Last Post: - 20th January 2015, 12:53
  2. How to convert HEX Value as formatted BIN String ?
    By Robson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th August 2007, 02:16
  3. How to send a binary string on an output?
    By Robson in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 25th July 2007, 22:54
  4. Visual Basic 6 & Access 2000
    By Demon in forum Off Topic
    Replies: 33
    Last Post: - 7th September 2006, 04:39
  5. Message String Table using Readcode
    By mytekcontrols in forum Code Examples
    Replies: 2
    Last Post: - 10th July 2005, 23:17

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts