Shop OBEX P1 Docs P2 Docs Learn Events
Download PropBASIC here... 00.01.14 LAST VERSION FOR BST - Page 9 — Parallax Forums

Download PropBASIC here... 00.01.14 LAST VERSION FOR BST

1679111229

Comments

  • Brian RileyBrian Riley Posts: 626
    edited 2010-02-08 21:52
    Bean,

    I dragged by old NEC Multi-Sync 15" flat panel out and hooked it to my Demo board and compiled the 4 VGA demos as they came in the 79-zipfile. VGA and VGA2 the LEDs on the demo board lit up, but it simply produced a black screen and no sync (according to the monitor) VGA3 and VGA4 seemed to run just fine. Any thoughts as to why?

    cheers ... BBR

    p.s. this is running Brad's binary on my iMac.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    cheers ... brian riley, n1bq, underhill center, vermont
    The Shoppe at Wulfden
    www.wulfden.org/TheShoppe/
  • BeanBean Posts: 8,129
    edited 2010-02-09 15:23
    Brian,
    I'm not sure why VGA_Demo and VGA_Demo2 don't work ?? They use the same VGA timing as VGA3 and VGA4.
    Do you have a different monitor you can try ? I do notice on mine that it comes up as 640x480 62Hz (62Hz is a bit odd, but it works).

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.

    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    ·
  • BradCBradC Posts: 2,601
    edited 2010-02-15 02:03
    I've uploaded some updated binaries here : www.fnarfbargle.com/PropBasic

    As I tend to make incremental updates in between Bean's official releases, I've appended my internal svn revision number to the binaries to make it easy to keep track of the latest code.
    Those that already have -38 binaries need not update.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You only ever need two tools in life. If it moves and it shouldn't use Duct Tape. If it does not move and it should use WD40.
  • BeanBean Posts: 8,129
    edited 2010-02-15 02:34
    Brian,

    I have found 1 TV that won't work with the VGA code. I'll get it changed to make it more compatible and repost the demo programs.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.

    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    ·
  • Tony B.Tony B. Posts: 356
    edited 2010-02-15 17:32
    I have just started working with PropBasic past couple of days and noticed that when I save a file using "Save As” it doesn't add the file extension ".pbas" to the files. I also noticed that if I start a new file it is named "NONAME.pbas1" and hit save (so I don’t lose the code if there is a problem during testing) it saves the file with the extension "pbas1" This makes the file in either case appear missing in the open dialog when I want to work on it later.

    Do I need to manually add the extension every time?

    Tony
  • BeanBean Posts: 8,129
    edited 2010-02-15 19:22
    Tony,
    The current IDE was just enough to get it working.
    There is a MUCH better IDE in the works.
    Please put-up with it for a little while longer until the new IDE is finished.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.

    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    ·
  • Mike HuseltonMike Huselton Posts: 746
    edited 2010-02-15 22:21
    Bean,

    I knew you had bigger plans for this thing. Keep it up!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    JMH
  • Brian RileyBrian Riley Posts: 626
    edited 2010-02-15 22:52
    Bean said...
    Brian,

    I have found 1 TV that won't work with the VGA code. I'll get it changed to make it more compatible and repost the demo programs.

    Bean.

    VGA and VGA2 now work, but TV_Text produces only a black screen and video_game produces a black screen with small dot that responds to Left/Right Shift, but Fire(Spacebar) does nothing ... this is all under the latest binaries/new GUI IDE

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    cheers ... brian riley, n1bq, underhill center, vermont
    The Shoppe at Wulfden
    www.wulfden.org/TheShoppe/
  • Tony B.Tony B. Posts: 356
    edited 2010-02-15 23:00
    Bean,

    More than HAPPY to wait.

    Thanks to you, Terry (Syntax Manual) and all who have made it great so far!

    Looking forward to writing and testing code this week to really start getting comfortable with PropBASIC.

    Tony
  • BradCBradC Posts: 2,601
    edited 2010-02-15 23:40
    See the announcement here for a new way to use PropBasic

    http://forums.parallax.com/showthread.php?p=882035

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You only ever need two tools in life. If it moves and it shouldn't use Duct Tape. If it does not move and it should use WD40.
  • BeanBean Posts: 8,129
    edited 2010-02-16 00:36
    Well, that wasn't a very long wait...

    Yes, what I have been so secret about is PropBASIC is now integrated into BST.

    This means that Windows, Linix and Mac users can program in PropBASIC.

    Please do not use the PropBASICIDE any more. It is a piece of·junk compared to BST.

    I'd like to give BradC a big THANK YOU for all his hard work in getting this working.

    P.S. I have chagne the first post in this thread with download instructions

    Bean




    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.

    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf


    Post Edited (Bean) : 2/16/2010 1:19:29 AM GMT
  • johnedjohned Posts: 2
    edited 2010-02-16 18:38
    This is a very important piece of work. Many thanks.

    Now the questions.

    I read in this thread earlier that it's possible to load Spin objects as well as PropBasic generated assembler. Is that possible from within BST? The nirvana of multiple Cogs each running different code generated from different languages, some compiled others not, all linked together with common constants and global variables is very exciting and potentially extremely productive. Is that possible now?

    Is there any sort of inline assembler optimizer that could at least flag possible redundant assembler instructions? I'm sure there's one inside of ICC, any other options?

    If we have to hand optimize is there some potential of flipping pre-generated assembler and the basic code that created it? That way the assembler moves to the left side and can be edited/optimized while the basic code moves right and becomes comments.

    It's like it's all coming together for the Propeller. A single IDE, potentially multiple languages, Complied and Interpreted, Amazing accessibility and migration options. Extremely cool.
  • BeanBean Posts: 8,129
    edited 2010-02-16 19:19
    Johned,
    · If you look at the demo program "dispatcher" it shows how to integrate the keyboard object by using ASM..ENDASM to insert some spin code to handle communication between PropBASIC and the keyboard object bu using HUB variables.

    · It's nowhere close to seemless, but it does work. Maybe a better / easier way can be developed. But the idea will be the same.

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.

    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    ·
  • Tony B.Tony B. Posts: 356
    edited 2010-02-16 22:15
    Thanks to all for the hard work of getting PropBASIC to run in BST!

    Just started working with simple code and have a couple of questions

    I’m working with a Spin Stamp on a BOE. The LCD is Parallax's Serial Backlit LCD connected on pin 15 (LCD PIN 15)

    1. Why does the following code send a "H" every two seconds to the LCD and not just one like when I put a END statement in?

    Start:
      ' user start-up code
    
    Main:
    
      Pause 2000
    
      SEROUT LCD, T19200, "H"
    
    
    



    2. Why do I get an "Invalid Parameter" with the following code? Isn't "Hello World!" considered an inline string like "PropBASIC" in the Syntax Manual on Page 77?

    
    Start:
      ' user start-up code
    
    Main:
    
      Pause 2000
    
      SEROUT LCD, T19200, "Hello World!"
    
      END
    
    
    



    I am starting with this simple code learning the syntax for the commands I will use most. Then I will port my BS2 code to PropBASIC to run my Robots and be able to add a lot more functionality

    Thanks for the help in advance.

    Tony
  • JonnyMacJonnyMac Posts: 9,104
    edited 2010-02-16 23:02
    Tony,

    You should attach the (whole) errant program. I just verified that the syntax described above works.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon McPhalen
    Hollywood, CA
  • hover1hover1 Posts: 1,929
    edited 2010-02-16 23:20
    I was going to log the same error when I saw T Bill's come up.

    I tried to do a simple string, "VST"
    and them I tried it in the DATA section "StopMusic"

    Attached is the simple program.

    Thanks guys for what your doing!

    Jim

    PS I did try it on .79 and bst
  • BeanBean Posts: 8,129
    edited 2010-02-16 23:32
    SEROUT only sends a single character. You need to make a subroutine to send a string.

    ' Program Description
    ' 
    ' 
    ' 
    '
    'Programmer
    'Date
    'Ver
    '
    DEVICE P8X32A, XTAL1, PLL16X
    FREQ 80_000_000
    
    ' Define CONs
    BaudVmusic CON "T9600"   ' Baud rate to communicate with VMusic2 Player
    
    ' Define PINs
    VmusicPinBirds PIN 10 LOW    ' Connected to Input on Vmusic Module #1
    
    ' Define HUB variables
    ' 
    
    ' Define DATA (DATA, WDATA, LDATA)
    StopMusic DATA "VST",13, 0   ' Don't forget the terminating zero
    
    ' Define TASKs
    ' none
    
    ' Define variables (LONGs only)
    
    ' Define Subroutines
    SendStr   SUB 1 ' Pass string
    
    ' Start of main code
    PROGRAM Start
    Start:
      PAUSE         5000
      SendStr       "VST"   ' In-line string, zero is automatically appended (note no carrage return)
      SendStr       StopMusic
    END
    
    ' Subroutine Code
    SUB SendStr
      DO
        RDBYTE __param1, __param2 ' Get character
        INC __param1              ' Point to next character
        IF __param2 = 0 THEN EXIT ' Zero is string terminator
        SEROUT VmusicPinBirds, BaudVmusic, __param2
      LOOP
    ENDSUB
    
    ' Task Code
    ' none
    
     
    

    I hope this helps,
    Bean


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.

    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    ·
  • hover1hover1 Posts: 1,929
    edited 2010-02-16 23:40
    Thanks Terry,

    I know all the code that you and Jon have posted have been calling serial routines in a subroutine to conserve space. I guess it is the documentation that is a little deceiving to a newbie.
    I guess it implies a string enclosed in quotes would be sent out. A least that's my take.

    Best Regards,

    Jim

    EDIT: I did try with and without ,0
  • BeanBean Posts: 8,129
    edited 2010-02-16 23:46
    Yeah, I understand. It's one of those things that most people just expect to work.

    Here are a couple others that may trip you up:

    · Only one math operator is allowed per assignment

    · Functions can only be assigned (cannot be used with operators)

    · DATA, HUB vars, and strings are stored in HUB ram and must be read with RDREAD, RDWORD or RDLONG
    P.S. If you can't get something working. Please feel free to post it. I'm here to help.

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.

    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    ·
  • hover1hover1 Posts: 1,929
    edited 2010-02-17 00:03
    Thanks for the heads up on the other gotchas.

    I just downloaded bst today and it has been working great with PropBasic. Thanks Brad! I have been using EditPlus which I find is a great tool. I only work in windows, but if I needed a front end for a MAC, bst rocks! And I would pay for that. Oh that's another thread. tongue.gif

    Jim


    Bean said...
    Yeah, I understand. It's one of those things that most people just expect to work.

    Here are a couple others that may trip you up:

    · Only one math operator is allowed per assignment

    · Functions can only be assigned (cannot be used with operators)

    · DATA, HUB vars, and strings are stored in HUB ram and must be read with RDREAD, RDWORD or RDLONG

    P.S. If you can't get something working. Please feel free to post it. I'm here to help.

    Bean
  • Roger LeeRoger Lee Posts: 339
    edited 2010-02-17 01:26
    Bean said...
    Extract both files.

    Run the bst file. When it launches, from the menu choose:
    Tools->IDE Preferences->PropBASIC click Browse and find the PropBASIC-BST file that you just extracted.

    after extracting PropBASIC I get one file "PropBASIC-BST.exe"

    My security will not let me select this file from the BST Browse menu.
    "Security Warning - PropBASIC-BST.exe removed".


    Any ideas folks?

    Roger
  • BeanBean Posts: 8,129
    edited 2010-02-17 01:28
    Roger,
    I assume you are using windows since you downloaded the .exe version ?
    What anti-virus program are you using ?

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.

    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    ·
  • Roger LeeRoger Lee Posts: 339
    edited 2010-02-17 01:43
    Yes Bean, Windows XP

    Using Norton Internet Security.

    Roger
  • hover1hover1 Posts: 1,929
    edited 2010-02-17 02:08
    Roger,

    I'm running XP and Norton 360. I did a download, extract and ran the bst IDE Preferences without a hitch.

    Just for giggles, set up the zip file to extract and rename it to a txt file before unzipping. Then after it is unzipped, rename to .exe.

    Just a thought.

    Jim

    EDIT: Nevermind,·didn't ·work.
    Roger Lee said...
    Yes Bean, Windows XP

    Using Norton Internet Security.

    Roger
    Post Edited (hover1) : 2/17/2010 2:14:55 AM GMT
  • hover1hover1 Posts: 1,929
    edited 2010-02-17 02:21
    Roger,

    Try downloading the file file again, except this time when you do a "Save target as", take the .exe out the file name of it before you download the zip. I bet Norton has a problem with downloading a file that has exe in it even though it is a zip.

    Jim

    Post Edited (hover1) : 2/17/2010 2:29:30 AM GMT
  • Roger LeeRoger Lee Posts: 339
    edited 2010-02-17 02:29
    I'm up and running.

    I took the .exe out of the extract to directory name.
    The extracted file name stayed the same. It worked.

    ( I don't have to understand how it works, just so it works)

    Running VGA_DEMO5


    Thanks
  • Tony B.Tony B. Posts: 356
    edited 2010-02-17 03:08
    Thanks for the help. I miss understood the Syntax Manual. I thought it showed that SEROUT could pass a string like in BS2 code. I believe I understand what I need to do thanks to your example. I attached the code below. Do I need to change anything? The code could be improved by?

    As for question one, does the simple program keep sending a "H" every two seconds because PASM wants it starts keeps running through all memory locations to the end and starts over unless it runs into a END command? Am I on the right track?

    The attached code flashed “Hello World!” and then garbage so fast the LCD couldn’t keep up. Looked at the code and realized I did have and END command. Added it and it works great.

    Sorry for the small code post. I will post the whole file in the future no matter how small.

    Thanks for all the help and work

    Tony
  • JonnyMacJonnyMac Posts: 9,104
    edited 2010-02-17 04:37
    I've attached a template that I use for serial -- it allows me to send a character (once or repeated n times), and a string. Also has shells for SERIN and PAUSE.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon McPhalen
    Hollywood, CA
  • SapiehaSapieha Posts: 2,964
    edited 2010-02-17 05:16
    Hi BradC

    I have problem with last BST.
    If I go to Help>About it give me that ERROR. LOOK on picture

    Regards
    Christoffer J

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.
    For every stupid question there is at least one intelligent answer.
    Don't guess - ask instead.
    If you don't ask you won't know.
    If your gonna construct something, make it·as simple as·possible yet as versatile as posible.


    Sapieha
    1205 x 925 - 238K
  • BradCBradC Posts: 2,601
    edited 2010-02-17 05:50
    Sapieha said...
    Hi BradC

    I have problem with last BST.
    If I go to Help>About it give me that ERROR. LOOK on picture

    Regards
    Christoffer J

    Can't translate the error message for me can you?

    Something worries me actually. This is the first release where I've used a new type of internal resource, and I've no way of testing it on non-english copies of windows.
    If you could, can you also try Help->Release Notes
    and also File->New->PropBasic Template

    All three use the same resource management mechanism and it would help to know if they all fail.

    The other thing you could try for me is (re)moving your PropBasic-bst executable so bst can't find it. It dynamically creates an item in the about box to report the version info of PropBASIC if it can find a valid .exe file.

    Can we continue this over in the bst thread so as to not pollute Beans Basic thread with my bugs [noparse]:)[/noparse]

    Thanks!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You only ever need two tools in life. If it moves and it shouldn't use Duct Tape. If it does not move and it should use WD40.
Sign In or Register to comment.