PBPL 2.50 observations


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Default

    How do I use the new LONG variables?
    Just as you did - nice job!

    LY = 1234 * 4321 = 5332114 = $515C92
    The lower word of the long is $5C92 = 23698

    It looks like the # preceding variables in the DEBUG command is only set up to handle words (or bytes) and not the new long. I do not have 2.50 as of yet so i cannot see it "they" updated the manual in the debug section to note this.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Not all the commands will work with Longs.
    It appears that statements that were designed to be smaller than the "Full Feature" version, such as DEBUG, or SERIN, still maintain their small size by not using Longs.

    Try your previous program with SEROUT2 or HSEROUT and DEC. You'll see things in a whole new light.

    P.S. Don't forget to try negative numbers, with SDEC.
    <br>
    DT

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Just a quick mention of something else you can do that never used to be possible.
    Code:
    IF MyVar < 0 then
        YahFriggenHoo = 1
    ENDIF
    <br>
    DT

Similar Threads

  1. PBP and PBPL
    By keymuu in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 30th January 2009, 18:58
  2. USB PBPL Compile errors
    By Rob in forum USB
    Replies: 11
    Last Post: - 7th April 2008, 09:18
  3. PBP 2.50 UPGRADE problems!!!!
    By earltyso in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 7th March 2008, 16:42
  4. IF..AND/OR..THEN and PBPL
    By duncan303 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th January 2008, 17:45
  5. PBP 2.50 pbpw vs pbpl .exe
    By Archangel in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 21st September 2007, 16:28

Members who have read this thread : 0

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