PDA

View Full Version : Tools for Sphinx



stevenmess2004
07-05-2009, 06:25 PM
This is a thread for some tools for mpark's sphinx.

I'll start it off with a help viewer and files for it. It's extremely simple but hopefully useful. Also in the attached is a file for viewing some info from the sob files. Dump all the files on your sd card and compile sobread.spn and help.spn and then you can use them like
help [command]
command - command you want help for. All it does is display the file with the name command.hlp

sobread filename
reads some info in the sob file. You must include the .sob extension.

mpark
07-06-2009, 12:54 AM
Wow, that's too cool. I was going to write something like sobread (I have one on the PC but it's not in Spin, obviously) but you've saved me the effort. Excellent.

Christof Eb.
04-07-2010, 01:04 AM
Hi,

my first attempts with Sphinx, perhaps of some·benefit to others.

Dirh is a Dir with two columns and 30 lines

Eh is a variant of ed with 30 lines and it prints the cursor position -line and column- at the bottom. This is useful, because the compiler outputs the position of the error.

Christof

Cluso99
04-07-2010, 06:30 AM
Thanks Steven. More additions http://forums.parallax.com/images/smilies/smile.gif Unfortunatley I have been basically without proper hardware for a number of weeks (interstate) so my dev has been lacking.

Christof: I have mono 1-pin TV working on SphinxOS. I will need to check how your code works. The screen buffer is exposed in hub although at present I have not added cursor manipulation. I would like to keep editors compatible with this style of interface so we can substitute drivers. The same applies to the keyboard and serial interfaces.

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

· Home of the MultiBladeProps: TriBlade (http://forums.parallax.com/showthread.php?p=786418),·RamBlade (http://forums.parallax.com/showthread.php?p=849265),·SixBlade (http://forums.parallax.com/showthread.php?p=780033), website (http://bluemagic.biz/cluso.htm)
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator) (http://forums.parallax.com/showthread.php?p=790917)
· Prop Tools under Development or Completed (Index) (http://forums.parallax.com/showthread.php?p=753439)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) (http://forums.parallax.com/showthread.php?p=778427) ZiCog (Z80) (http://forums.parallax.com/showthread.php?p=788511) , MoCog (6809) (http://forums.parallax.com/showthread.php?p=811043)·
· Prop OS: SphinxOS (http://forums.parallax.com/showthread.php?p=819353)·, PropDos (http://www.orrtech.us/propdos/) , PropCmd (http://obex.parallax.com/objects/440/)··· Search the Propeller forums (http://www.google.com/advanced_search?q=+site:forums.parallax.com&num=20&hl=en&lr=)·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz (http://www.bluemagic.biz)·· MultiBlade Props: www.cluso.bluemagic.biz (http://www.cluso.bluemagic.biz)

Christof Eb.
04-14-2010, 02:12 AM
Two very very small but perhaps nevertheless useful improvements:

The editor-variant e2 now supports 30lines, line and column numbers and

CTRL-x will cut the actual line to a copybuffer

CTRL-c will copy the line to the copybuffer

CTRL-v will insert the content of the copybuffer -just one line- before the actual line.


dirhw will show the directory of the sd in two columns and with 30 lines and it will wait for a keystroke after each 29 lines.


Christof

Cluso99
04-14-2010, 09:01 AM
Great additions Christof.

I have a 1pin TV which has up to 80*25 in the hub buffer which can be written directly by any program. The display cog has the font and some basic screen control, cursor plus the display all in the one cog. It would be nice to use this as the basis of one of the optional output devices. It would be possible to also do an equivalent color 3pin TV driver.

Currently my driver is posted as Debug 1pin TV and 1-pin Keyboard in the obex (not the latest keyboard as I found a bug) under Tools. I haven't released a SphinxOS version yet.

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

· Home of the MultiBladeProps: TriBlade (http://forums.parallax.com/showthread.php?p=786418),·RamBlade (http://forums.parallax.com/showthread.php?p=849265),·SixBlade (http://forums.parallax.com/showthread.php?p=780033), website (http://bluemagic.biz/cluso.htm)
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator) (http://forums.parallax.com/showthread.php?p=790917)
· Prop Tools under Development or Completed (Index) (http://forums.parallax.com/showthread.php?p=753439)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) (http://forums.parallax.com/showthread.php?p=778427) ZiCog (Z80) (http://forums.parallax.com/showthread.php?p=788511) , MoCog (6809) (http://forums.parallax.com/showthread.php?p=811043)·
· Prop OS: SphinxOS (http://forums.parallax.com/showthread.php?p=819353)·, PropDos (http://www.orrtech.us/propdos/) , PropCmd (http://obex.parallax.com/objects/440/)··· Search the Propeller forums (http://www.google.com/advanced_search?q=+site:forums.parallax.com&num=20&hl=en&lr=)·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz (http://www.bluemagic.biz)·· MultiBlade Props: www.cluso.bluemagic.biz (http://www.cluso.bluemagic.biz)

Christof Eb.
04-14-2010, 06:52 PM
Hi cluso99,
thanks for the compliments....
I am working on a project, for which I use a protoboard with added video output and of course added sd-card.
The video configuration has the same pins like the demo board. I tried some of the video drivers available. Unfortunately I don't understand them completely so I failed to get some of them to work. There are some "mysteries " regarding the calculation of the output pins and so on. So I am quite happy, that I got this 40*30 driver working. Somewhere it is said, that it could do 64 charcters per line line too, but I could not get this work....

The interface to the driver is done by the file TvTxth.spn. Into this file I copied some of mparks extensions for cursor control. Therefore this can be used as 1:1 replacement of the original object in mparks ed. Only the start of the driver is different.
So if there would be an equivalent file for your driver and in my case if your driver would work with the demoboard pins, it would be simple to use your driver too.

Thanks for "Search the Propeller forums" link. That is very helpful.

Christof

Cluso99
04-14-2010, 07:21 PM
Christof: I agree it takes a lot of understanding to working out how the TV & VGA drivers work. For the larger chars per line I am overclocking the prop.

I am trying to make all the drivers transparent so the top code can remain unchanged. However, editors require a little more control, so this will not necessarily be possible for all, such as the serial driver. But at least we can have a couple of editors to work with the different drivers. Just have to get to a point where we can change the drivers on the fly with SphinxOS.

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

· Home of the MultiBladeProps: TriBlade (http://forums.parallax.com/showthread.php?p=786418),·RamBlade (http://forums.parallax.com/showthread.php?p=849265),·SixBlade (http://forums.parallax.com/showthread.php?p=780033), website (http://bluemagic.biz/cluso.htm)
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator) (http://forums.parallax.com/showthread.php?p=790917)
· Prop Tools under Development or Completed (Index) (http://forums.parallax.com/showthread.php?p=753439)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) (http://forums.parallax.com/showthread.php?p=778427) ZiCog (Z80) (http://forums.parallax.com/showthread.php?p=788511) , MoCog (6809) (http://forums.parallax.com/showthread.php?p=811043)·
· Prop OS: SphinxOS (http://forums.parallax.com/showthread.php?p=819353)·, PropDos (http://www.orrtech.us/propdos/) , PropCmd (http://obex.parallax.com/objects/440/)··· Search the Propeller forums (http://www.google.com/advanced_search?q=+site:forums.parallax.com&num=20&hl=en&lr=)·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz (http://www.bluemagic.biz)·· MultiBlade Props: www.cluso.bluemagic.biz (http://www.cluso.bluemagic.biz)