MSB Compile error


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2006
    Location
    Murrieta, CA
    Posts
    62

    Post MSB Compile error

    I have an old program that was created with Pic Basic pro... now it seems not to work with PBP3. the MSB is no longer supported?

    Code:
    if (Thefile & MSB)THEN 
       high pindata
    else 
        low pindata
    endif
    There are 10 kinds of people. Those that know binary and those that do not.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,520


    Did you find this post helpful? Yes | No

    Default Re: MSB Compile error

    Hi,
    No, MSB is not a reserved word in PBP3 (and I don't recall it being so in previouse versions either). What is you want to achieve? Are you possibly thinking of .HighByte?

    /Henrik.

  3. #3
    Join Date
    Nov 2006
    Location
    Murrieta, CA
    Posts
    62


    Did you find this post helpful? Yes | No

    Default Re: MSB Compile error

    I found my problem. I forgot to declare MSB.

    Code:
    MSB con $8000
    There are 10 kinds of people. Those that know binary and those that do not.

Similar Threads

  1. Compile Error
    By longdw in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd March 2010, 16:04
  2. Compile error & syntax error on the word "loop:" as a label?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th March 2010, 04:14
  3. Error When Compile
    By santamaria in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th January 2008, 10:11
  4. Compile Error 108
    By bbubel in forum General
    Replies: 1
    Last Post: - 24th May 2005, 16:02
  5. Compile Error
    By Beavis in forum General
    Replies: 2
    Last Post: - 24th May 2005, 06:14

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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