Re: Announcing a VentureForth plugins experiment.
- From: Dennis <druffer@xxxxxxxxxxxxxxxx>
- Date: Thu, 22 Jan 2009 04:29:47 -0800 (PST)
On Jan 21, 10:35 pm, johnmdr...@xxxxxxxxx wrote:
On Jan 9, 9:08 pm, Dennis <druf...@xxxxxxxxxxxxxxxx> wrote:
I have created a Google Code page to hold User Supported plugins for
the VentureForth compiler. It is not supported byIntellaSysand this
announcement is news to them as much as it is news to all of you. It
is simply an idea I had and something that I could start. I have
seeded it with a simple FloorPlan plugin that demonstrates the concept
I have in mind. I have also put in a diff file that can be used to
patch theIntellaSysSwiftForth USB driver to work on gforth in
cygwin. However, this concept requires user participation to
succeed. Go to:
http://code.google.com/p/vf-plugins/
And let me know what you think. I'm an old-school type of guy, so
there isn't much pizzaz yet, but with your help, it can be whatever we
want it to be. I just can not do all of the work alone. It will live
or die based on your input and particiaption.
DaR
Very nice! Both the application (FloorPlan) and the development
framework
(plugins). I have a couple of extensions in mind, one that I've
already
tested and one that I have in mind.
The first is really a "patch". In the current version of VentureForth
when
you disassemble code using the "dump" command it shows line addresses
in
decimal. But throughout the rest of the simulator addresses are shown
in
hexadecimal. I found this quite irritating when trying to debug. I
would
be stepping through the code, looking at the program counter which is
in
hex, and trying to find the corresponding line in the dumped code
which
would be in decimal. So I made the following change to interface.f
: dump1 ( ta) \ it should display ports
base @ >r hex
dup symbol? dup taddr? and if
cr ." : " type else 2drop then
cr dup ( decimal ) 3.u space dup m@ 32 base !
dup $15555 xor 2 lshift 4.u space
over t@ $ffc00000 and 22 rshift decimal 2.u space \ print node #
over t@ $80000 and if ." RAM " then
over m?# if hex 5.u space .inst else 2drop then r> base ! ;
: dump ( ta n) over + swap do i dump1 loop ;
Basically I commented out the call to "decimal" in "dump1" right
before the "3.u" word. But I wonder if this would be better as a
plugin? Perhaps a word "dumphex" that would leave the original
"dump" as is?
The second thing I would like to be able to do is to simulate
external memory. (Is there a way to do that already?) Clearly
there is not enough memory on chip to do much and the power of
the SEAForth rests partly in its ability to stream in data
quickly. (For example decoding any decent sized JPEG would
have to be streamed in). I'm not at all sure how to go about
adding this (again assuming that it's not already there and
I'm just missing something).
Regards,
John M. Drake- Hide quoted text -
- Show quoted text -
John, let me know if you'd like to join my experiment at vf-plugins
and I can give you the ability to add your own extensions.
For the most part, I think it is better to add your alternative
display words as a new function rather than modifying what has been
provided, but I've gone both ways over time. The biggest problem with
modifications is that VF is copyright and all we can do is patch the
existing files. This will be problematic when a new version is
released, but then again, anythng we do can be broken by the next
version. It's just the game we are playing. ;)
There are external memory concepts in the SEAforth design, but it
becomes an implementation issue that seems to be changing with each
chip and each board. I haven't figure it out myself yet, but it would
be illuminating to see someone try. Which board do you have? I might
be able to point you to an example if you haven't found one already.
DaR
.
- Follow-Ups:
- Re: Announcing a VentureForth plugins experiment.
- From: johnmdrake
- Re: Announcing a VentureForth plugins experiment.
- From: johnmdrake
- Re: Announcing a VentureForth plugins experiment.
- References:
- Announcing a VentureForth plugins experiment.
- From: Dennis
- Re: Announcing a VentureForth plugins experiment.
- From: johnmdrake
- Announcing a VentureForth plugins experiment.
- Prev by Date: Re: Constant array
- Next by Date: Re: Constant array
- Previous by thread: Re: Announcing a VentureForth plugins experiment.
- Next by thread: Re: Announcing a VentureForth plugins experiment.
- Index(es):
Relevant Pages
|