gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gforth] my vsum function is suspiciously non-local


From: Carsten Strotmann (private)
Subject: Re: [gforth] my vsum function is suspiciously non-local
Date: Sun, 07 Mar 2010 19:30:09 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Terence,

On 3/7/10 7:20 PM, Carsten Strotmann (private) wrote:
> : increase-value ( n addr -- v+n ) TUCK @ + SWAP ! ;

a word that does exactly this exists in most Forth systems as "+!"

+! ( n | u a-addr -- )
Add n | u to the single-cell number at a-addr.

A good reference of Forth Words is the Forth 200x standard document
http://www.forth200x.org/documents/forth09-3.pdf

- -- Carsten

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuT8LEACgkQsUJ3c+pomYHjdgCfWoN5D58MSw9md+xtkwS5PZ2T
0iUAoJN4xBatipknlEOjmIt9Xy5FkN41
=ED+5
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]