home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.forth
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!mars.tsd.arlut.utexas.edu!larry
- From: larry@tsd.arlut.utexas.edu (Larry Maturo)
- Subject: Starting Forth - Chapter 2 exercies
- Message-ID: <1992Nov11.141750.19841@titan.tsd.arlut.utexas.edu>
- Sender: usenet@titan.tsd.arlut.utexas.edu
- Nntp-Posting-Host: eagle
- Organization: Applied Research Labs, The University of Texas at Austin
- Distribution: comp
- Date: Wed, 11 Nov 1992 14:17:50 GMT
- Lines: 22
-
- I am trying to learn Forth using Starting Forth, second edition and Pygmy Forth.
- Some of the exercises at the end of chapter 2 seem to require that you access the
- stack down aways. I'm not sure how to do that with the material introduced up
- to this point in the book. Also, how do you, in general, access the stuff below
- the stack top? Starting Forth had 2SWAP and 2OVER and Pgymy Forth did'nt so I
- added them using the assembler. I noticed in doing so that I used registers to
- temporarily hold things from the stack. Does Forth have something similar to
- registers (variables?) that can temporarily hold things from the stack? Should
- I just blow this off for now and continue with the book?
-
- +-----------------------------------+----------------------------------------+
- | | |
- | Larry Maturo | Opinions expressed herein must be |
- | Tactical Simulation Division | yours, neither I nor my employer have |
- | Applied Research Laboratories | any. |
- | University of Texas at Austin | |
- | P.O. Box 8029 +----------------------------------------+
- | Austin, Texas 78713-8029 | |
- | | When you're as great as I am it's hard |
- | larry@titan.tsd.arlut.utexas.edu | to be modest, but I succeed where |
- | | others fail. |
- +-----------------------------------+----------------------------------------+
-