TV_Text Demo for PropBASIC
Coley
Posts: 1,112
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
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
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
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
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
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
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]
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
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
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.
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