FUNCTIONS in PBP


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2005
    Location
    Tehran, Iran
    Posts
    28

    Default FUNCTIONS in PBP

    HI
    is it possible to use FUNCTIONS with some variables in PBP?

    something like this: (that is used in C++ or C languages)

    function_name(var_1,var_2,var_3)
    {
    body of function...
    }

    with best regards.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Yes it's possible but it's not PBP native. It's called a macro.

    Have a look to MPASM assembler>> Macro language. This should give you some pointer.

    And then have a look to
    http://www.picbasic.co.uk/forum/show...ighlight=macro
    http://www.picbasic.co.uk/forum/show...ighlight=macro
    http://www.picbasic.co.uk/forum/show...ighlight=macro
    http://www.picbasic.co.uk/forum/show...ighlight=macro
    http://www.picbasic.co.uk/forum/show...ighlight=macro
    http://www.picbasic.co.uk/forum/show...ighlight=macro

    This should be enough to start

    HTH
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Nov 2005
    Location
    Tehran, Iran
    Posts
    28


    Did you find this post helpful? Yes | No

    Default

    thank you , but in this manner i need to know "assembly language" and ...

    i want to write my codes only with PBP not assembly language.

    best ragards.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    well, unless Melabs decide to add it, you'll have to deal with the above. I agree, it might looks hard to do, but once you're familiar with, it's as easy as ABC.

    Why not posting what you want to do? Sure we could suggest you something.

    HEY! don't be afraid... we are here to help anyway
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Jan 2007
    Posts
    37


    Did you find this post helpful? Yes | No

    Default

    is there any evidence that they continue developing on pbp ?

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,837


    Did you find this post helpful? Yes | No

    Default

    Their site is still on air? The answered questions? The latest 2.47 version?

    Ioannis

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 12:55
  2. Docs for Hacking PBP?
    By spamme0 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 19th May 2009, 19:00
  3. Compiler differences between PBP 2.33 & 2.46
    By nikopolis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd May 2006, 19:01
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30
  5. Replies: 2
    Last Post: - 13th December 2005, 00:11

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