EQU is discussed in Section 3.4 in the SwiftX manual you have, probably 4.4=
=20
in the current edition. The text you're quoting refers to a word _defined_=
=20
by EQU (an instance of an EQU). Since it's a defining word, it would be=20
legitimate to use it in an _interpreter_ colon definition, but _not_ a=20
target definition.
You'd probably benefit from a careful study of all of Chapter 3=20
(cross-compiler principles).
Cheers,
Elizabeth
At 11:35 AM 3/21/01 -0600, Dennis W. Bulgrien wrote:
>EQU help states "If ... referenced inside a target colon definition, its=20
>value will be compiled as a literal". Does this mean that
>if <name> or "EQU" is referenced? I found code with EQU inside an=20
>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 =97 )
>
>Define a one-cell constant in the host only, whose value is x. If an EQU=
=20
>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!
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Elizabeth D. Rather (US & Canada) 800-55-FORTH
FORTH Inc. +1 310-491-3356
5155 W. Rosecrans Ave. #1018 Fax: +1 310-978-9454
Los Angeles, CA 90250
http://www.forth.com
"Forth-based products and Services for real-time
applications since 1973."
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
----------------------------------------------------------------------
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:50:34 PST
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 09-Feb-2012. Archive updated nightly.