Hi Enoch,

> Your new extended VM words are interesting. Yet, they are not in the
> emerging 200x standard, not in gforth, not in SwiftForth.

Its probably too easy

 variable A

 : >a  a  ! ;
 : a>  a  @ ;
 : a@  a> @ ;
 : a!  a> ! ;
 : na@ a> + @ ;
 : na! a> + ! ;

 \ pre-increment fetch/store
 : a@+ a@ cell a +! ;
 : a!+ a! cell a +! ;
 : a@- a@ cell negate a +! ;
 : a!- a! cell negate a +! ;

 \ post-increment fetch/store
 : a@+ cell a +! a@ ;
 : a!+ cell a +! a! ;
 : a@- cell negate a +! a@ ;
 : a!- cell negate a +! a! ;


> Is the reason they did not become popular because 
> they are for a-addr memory access (cell) rather 
> than the more natural c-addr (byte) ?

I like them the way they are. Both variants. The auto-increment
can easily walk memory cell-wise, the n-offset access is good 
for structures (with byte alignment).

Matthias

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to