Future PBP


Closed Thread
Results 1 to 20 of 20

Thread: Future PBP

Hybrid View

  1. #1
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Future PBP

    It’s the fact that the BASIC is so close to the C that would make it easier.
    When your PBP program is compiled to assembler, all of your macro commands
    like software serout, sound, pause, anything like that is moved to the beginning of code,
    and those routines called from another small section of code where you originally wrote the command.

    The simpler things like conditional branching and anything logically you do with variables stays where it is.
    It also often has to shove lookup tables at the top of the nearest code page, etc.

    Converting a BASIC program to C there would be almost none of that.
    It’s not something I’m planning to do, but someone could.. it is still a bit of an undertaking,
    but for the most part, just simple syntax conversion.

    Don’t get me wrong, it’s not all this easy, but for the most part, what is converted could just be stacked in the new file in order.

    BASIC
    Code:
    x var WORD
    y var WORD
    
    if (x == y) {x = y + 4;}
    C
    Code:
    WORD x;
    WORD y;
    
    if x = y then x = y + 4
    Last edited by Art; - 17th May 2015 at 03:48.

  2. #2
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: Future PBP

    Take a look at BCX (Basic to C Converter)
    I haven't tried it and know little about it.

    Norm
    Last edited by Normnet; - 17th May 2015 at 05:11.

  3. #3
    Join Date
    Feb 2013
    Posts
    1,124


    Did you find this post helpful? Yes | No

    Default Re: Future PBP

    String variables, this is all we need....

Similar Threads

  1. Replies: 2
    Last Post: - 12th November 2014, 07:57
  2. The Future Of Hobby Electronics.
    By T.Jackson in forum Off Topic
    Replies: 53
    Last Post: - 2nd February 2009, 06:39
  3. PBP File Extension: .BAS vs .PBP
    By nedtron in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th February 2006, 05:48

Members who have read this thread : 6

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