IF..THEN syntax


Closed Thread
Results 1 to 40 of 53

Thread: IF..THEN syntax

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    [QUOTE=Darrel Taylor;32729]Compiled it for 16F84, still no errors.

    QUOTE]


    in that case, could you please send me the .HEX file so that I could load it to my PIC micro if that is ok with you?

    P.S. I sent you a PM

    :-D

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


    Did you find this post helpful? Yes | No

    Default

    It sounds like an easy thing. It's already compiled, just send you the .HEX file.

    But, being Asst_Admin on this forum, if I started compiling things for someone, I'd have 100 people a day that didn't want to buy the compiler, sending me their files.

    That wouldn't be fair to the people that had to pay for their compiler.
    DT

  3. #3
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    well, ok then. then pls suggest any other options if its ok with you. :-)

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


    Did you find this post helpful? Yes | No

    Default

    Well, maybe you could ask William Gray Walter

    Who's book you got the program from.

    Or was it, John Iovine's "Pic Robotics".
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Default

    Tell ya what.

    Send me the .LST file from your project.
    darrel at pbpgroup.com

    Maybe I can find the problem and suggest an alternative that might work with 2.30

    No guarantees.
    <br>
    DT

  6. #6
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Wow! Have you read John Iovine's book? Well, I got the program from his book "Pic Robotics". Correct me if I'm wrong but I think the <bold>William Gray Walter</bold> whom you're referring to passed away in 1977?

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scaenix View Post
    Correct me if I'm wrong but I think the <bold>William Gray Walter</bold> whom you're referring to passed away in 1977?
    Right, which would have made it hard to have written something in PBP.
    But he did make the original "Turtle" robot that supposedly John based it on.

    Got the .LST file, and it's worse than I thought. You have PBP version 2.03. (extremely old)

    If you look at the version history
    http://www.melabs.com/support/upgrade.htm#History

    version 2.04 corrected a problem in 2.03 ...
    IF..THEN..ELSE..ENDIF didn't always generate GOTO macro.

    And as I look through the .LST file ... Every IF statement has an error.
    Can't imagine how PBP even got off the ground with those kinds of errors.

    Sorry, I don't see any way to make it work with 2.03
    <br>
    DT

  8. #8
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Right, which would have made it hard to have written something in PBP.
    But he did make the original "Turtle" robot that supposedly John based it on.

    Got the .LST file, and it's worse than I thought. You have PBP version 2.03. (extremely old)

    If you look at the version history
    http://www.melabs.com/support/upgrade.htm#History

    version 2.04 corrected a problem in 2.03 ...
    IF..THEN..ELSE..ENDIF didn't always generate GOTO macro.

    And as I look through the .LST file ... Every IF statement has an error.
    Can't imagine how PBP even got off the ground with those kinds of errors.

    Sorry, I don't see any way to make it work with 2.03
    <br>
    The IF...THEN... might not generate a goto macro like he has it in the program:
    if x>255 then skp

    but how about
    if x > 255 then goto skp

    It sounds logical anyways...and I don't see the word 'goto' in any of the if/then statements

  9. #9
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Well, thanks anyway..our time in replying to the posts really helped. I already got the code compiled using PBP 2.46. Please don't ask me how I did it, just let me tell me that it really took my ingenuity to work..hehe. And with regards to the unfairness of the HEX file, I understand your situation and because of that, I became more resourceful in finding ways to compile my program without using any illegal credit cards or spending a dime. hehehe.. I hope we talk again on programming topics man! More power to you!

Similar Threads

  1. Endless supply of 'syntax error's.
    By BitHead in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th December 2009, 21:21
  2. Replies: 0
    Last Post: - 1st September 2008, 08:03
  3. Math operations & Syntax?
    By kevj in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 23rd February 2008, 02:40
  4. Need help with I2C syntax problem?
    By Michael Wakileh in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th July 2007, 20:11
  5. Syntax error PIC16F684
    By milestag in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st September 2005, 19:54

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