Shop OBEX P1 Docs P2 Docs Learn Events
TV_Text Demo for PropBASIC — Parallax Forums

TV_Text Demo for PropBASIC

ColeyColey Posts: 1,112
edited 2010-08-08 09:39 in Propeller 1
This is a real quick and dirty demo for PropBASIC that uses TV_Text.spin and TV.spin.
It recreates the original Spin version of TV_Text Demo from the Propeller library.

Please excuse the untidy code, I will update it and add more comments when I have more time.
PropBASIC is a great tool and it would be great to see other libraries converted....

Demo is setup for Parallax Demoboard and NTSC TV

Regards,

Coley

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PropGFX - The home of the Hybrid Development System and PropGFX Lite

Post Edited (Coley) : 8/2/2010 10:57:51 PM GMT

Comments

  • VultureVulture Posts: 6
    edited 2010-08-03 22:08
    Nice job! This works great. Thanks for taking the time to convert the SPIN to PROP Basic. I am one of the old PBasic guys that thanks you and Terry Hitt again for·your many contributions to the old PBasic guys and our non-SPIN skills. Great job.· You are also right about the PROP BASIC tool. It is a great tool for us old guys.Thanks again!

    yeah.gif·
  • Cluso99Cluso99 Posts: 18,069
    edited 2010-08-03 22:16
    Great work Coley. (I haven't looked) Just another piece of work to expand the prop's horizons smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Links to other interesting threads:

    · Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
    · Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
    · Prop Tools under Development or Completed (Index)
    · Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)·
    · Prop OS: SphinxOS·, PropDos , PropCmd··· Search the Propeller forums·(uses advanced Google search)
    My cruising website is: ·www.bluemagic.biz·· MultiBlade Props: www.cluso.bluemagic.biz
  • BaggersBaggers Posts: 3,019
    edited 2010-08-04 10:21
    great work Coley, it runs so much faster also in PropBASIC also, so that's a nice bonus [noparse]:D[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
  • ColeyColey Posts: 1,112
    edited 2010-08-05 10:41
    The truth is I have hardly used TV_Text for anything other than setting up the display.
    Now that I have more understanding of how the dispatcher works my next goal us to dispense with TV_Text altogether and just use TV.spin.
    Then I can have a go at converting some of the other drivers.....

    Regards,

    Coley

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PropGFX - The home of the Hybrid Development System and PropGFX Lite
  • BeanBean Posts: 8,129
    edited 2010-08-05 13:14
    Coley,
    Great job.
    Remember if you run out of code space, you can just add "LMM" to the end of the "PROGRAM" line and the compiler will generate LMM code.

    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
    NEW PropBasic Blog: http://propbasic.blogspot.com
    NEW Rising Tite Computer Blog: http://risingtidecomputer.blogspot.com
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There are two rules in life:
    · 1) Never divulge all information
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
  • ColeyColey Posts: 1,112
    edited 2010-08-05 14:50
    Hey Bean!
    I haven't tried LMM yet, what is the speed overhead and does it generate LMM code for every Cog?

    Regards,

    Coley

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PropGFX - The home of the Hybrid Development System and PropGFX Lite
  • BeanBean Posts: 8,129
    edited 2010-08-06 09:43
    Coley,
    The main PROGRAM and each TASK can be either native or LMM. So you have all options available.

    You just append LMM to the TASK command as in:

    TASK MyTask LMM

    Don't put LMM in the header where you define the tasks:

    MyTask TASK LMM ' !!! NOT HERE !!!

    For large programs usuall the main program is LMM with some tasks being LMM and some being native (like video drivers). If a TASK will fit in the native code space than it is better to let it be native even if it doesn't need the speed.

    Bean
  • BaggersBaggers Posts: 3,019
    edited 2010-08-08 07:07
    Bean,

    With the LMM setting on a COG, is there a way to select what functions stay in cog-ram and what are actually LMM'd ?

    Sorry to hijack Coley's thread with this question,

    Cheers,
    Jim.
  • BeanBean Posts: 8,129
    edited 2010-08-08 08:31
    Baggers,
    No, It's all or nothing.
    But that is an interesting idea. I may look at allowing something like:

    MySub SUB 2 NATIVE

    This would force "MySub" to be a native code subroutine.

    This is do-able, the compiler just has to keep track of what subroutines are LMM and which are native.

    Bean
  • BaggersBaggers Posts: 3,019
    edited 2010-08-08 09:39
    Cool, that would be helpful :D thanks!
Sign In or Register to comment.