EQU help states "If ... referenced inside a target colon definition, its value will be compiled as a literal". Does this mean that
if <name> or "EQU" is referenced? I found code with EQU inside an interpreter colon definition. I don't know what it does, other
than popping a cell off the stack. Could someone explain it please?
Example:
--------
\ ACE: defines registers in the TI dual ACE chip.
\ 'ACE is the base address for the TI chip.
INTERPRETER
: ACE: ( r -- ) 'ACE + EQU ;
Help:
-----
EQU <name>
( x — )
Define a one-cell constant in the host only, whose value is x. If an EQU is referenced inside a target colon definition, its value
will be compiled as a literal. Execution of name returns x.
-- Dennis W. Bulgrien, Engineer Mailto:dbulgrien_at_vcsd.com VertexRSI, Controls and Structures http://www.vcsd.com 1915 E. Harrison Road tel: 903 295 1480 x287 Longview, TX 75604-5438 fax: 903 295 1479 ---------------------------------------------------------------------- swiftx_at_forth.com The SwiftX programming discussion email list To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com For help with listar commands, send subject "help" to listar_at_forth.com Archives are located at http://www.forth.com/swiftx -- check them out!Received on Wed Mar 21 2001 - 09:37:31 PST
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 08-Feb-2012. Archive updated nightly.