PBP or ASM?


Closed Thread
Results 1 to 5 of 5

Thread: PBP or ASM?

  1. #1
    Join Date
    Dec 2008
    Location
    Charlottesville, VA
    Posts
    31

    Question PBP or ASM?

    What is the difference in writing a program using the basic like language used in Microcode studio and writing a program using assembly language? I mean, once a program is written in basic, it is converted to both assembly and hex for programming. So is there still a significant difference?
    Last edited by mcbeasleyjr; - 19th January 2009 at 19:49.

    Morris Beasley
    Manufacturing Test Technician
    B.S. Industrial Technology (2007)

    For more information on our robotics, please visit:
    http://www.ish-electronics.webs.com

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mcbeasleyjr View Post
    What is the difference in writing a program using the basic like language used in Microcode studio and writing a program using assembly language? I mean, once a program is written in basic, it is converted to both assembly and hex for programming. So is there still a significant difference?
    I cannot speak for all flavors of basic or C, the biggest difference is going to be your time. Assembly requires many times more lines of code to be written by YOU the programmer. PBP is a carefully written compiler which generates assembly code which is then converted into the Intel HEX file required by the PIC. The issue BASIC vs C or BASIC vs assembly goes back decades to the early BASIC languages used by the PC where they ran through an interpreter and that ran quite slow.
    PBP does not do that, it is a real compiler and produces a fairly compact code. Can you write better more compact code in assembler or C ? Yes IF you know what you are doing, and are careful, you can. Why is that ? Because people are still smarter than computers. You will get programs up and running much faster in basic.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Dec 2008
    Location
    Charlottesville, VA
    Posts
    31


    Did you find this post helpful? Yes | No

    Post Thanks

    Thank you for that. Many people have told me that I should use assembly language because it is much faster. But working with PBP, as I have always done, seems to work just fine. The only problems I tend to have with it is when I try to use interrupts. Other than that, I have no problems.

    Morris Beasley
    Manufacturing Test Technician
    B.S. Industrial Technology (2007)

    For more information on our robotics, please visit:
    http://www.ish-electronics.webs.com

  4. #4
    Join Date
    Mar 2006
    Location
    Pennsylvania, USA.
    Posts
    130


    Did you find this post helpful? Yes | No

    Default

    Morris,
    Give Darrel's Instant Interrupts a try! Look in the code example section, you'll see five or six pages of good questions and answers regarding using Instant Interrupts. Darrel has examples showing you how to blink an LED using timers, and how to do multiple interrupts in the same program. It works great, and makes using interrupts so simple you will love it!

    Jerry.
    If your oscilloscope costs more than your car...

  5. #5
    Join Date
    Jul 2008
    Location
    Vancouver, WA
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    I can't speak highly enough of PBP either! I started out about 9 years ago programming in assembly, the old 16C chips. About a year ago, I found PBP and have not regretted the money spent yet. I think it helps to know somewhat about assembly so you have a better idea of what is going on and how to make the things happen that you want. PBP, however, saves major time. A project that would have taken a week in assembly usually only requires about a day with PBP. You can learn a great deal by reading this forum also. There is a lot of collective knowledge here. I guess what I'm trying to say is, use PBP but take the time to learn a bit of assembly too.
    Light travels faster than sound. That's why some people seem bright until you hear them speak.

Similar Threads

  1. PBP, ASM and LST files
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2010, 13:43
  2. ASM or PBP First?
    By mackrackit in forum Off Topic
    Replies: 4
    Last Post: - 10th October 2009, 12:08
  3. pbp - asm variable passing
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th May 2009, 08:49
  4. 10f Pbp & Asm
    By Ron Marcus in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th February 2006, 21:23
  5. asm and pbp
    By pic beginner in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 24th October 2004, 05:33

Members who have read this thread : 1

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