home .. forth .. colorforth mail list archive ..

[colorforth] Another idea


Hi everyone, it's me again for the 4th time today,
sorry if I'm bothering you.

I've read the c18 paper at:
http://dec.bournemouth.ac.uk/forth/euro/ef01/moore01a.pdf

I saw the new B register added to the chip and I thought about it
and I came to the conclusion that those chips need only
4 registers aside from the T, S, R and the physical stacks:
the A and B could be eliminated and replaced
by 2 stream pointers and 2 table pointers. The stream pointers
would use the @+ and !+ instructions and the table pointers
would use as a special instruction +@ and +!, aside from classical
@ and ! to change their content.

One register pair could use the following mechanism
@+ fetch from the value of the register then increment it,
+@ fetch from the TOS+ContentOfRegister, leaving the
register as it is.

and the other pair could use
!+ to store at the value of the register then increment it and
+! to store the value at S at address registervalue+T.

It would make implementing a lot of programming task a
lot easier (i'm thinking mainly of aha here ;o)

I'm in the design phase of my VM and I would be glad to
hear from open minded individuals that don't call everyone
jerks because truth makes them angry =) (btw I dont like
flame wars so please get over it, I wont make anymore
personnal comments like those, I promise ;p)

CrowKiller
------------------------

To Unsubscribe from this list, send mail to Mdaemon@xxxxxxxxxxxxxxxxxx with:
unsubscribe ColorForth
as the first and only line within the message body
Problems   -   List-Admin@xxxxxxxxxxxxxxxxxx
Main ColorForth site   -   http://www.colorforth.com