Tools for Sphinx
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 [noparse][[/noparse]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.
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 [noparse][[/noparse]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.
Comments
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
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,·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
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
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,·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
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
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,·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