Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!pitt!willett!ForthNet From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: polyFORTH Message-ID: <2900.UUL1.3#5129@willett.pgh.pa.us> Date: 18 Jun 91 01:56:57 GMT Organization: (n.) to be organized. But that's not important right now. Lines: 38 Category 7, Topic 7 Message 7 Sun Jun 16, 1991 F.SERGEANT [Frank] at 23:19 CDT Larry Moss had some comments and questions about polyForth on a TI DSP chip. Larry, I was very interested to read your discussion of pF and your troubles & questions about it. It is on my list to port Pygmy Forth to the Analog Devices ADSP2101 and ADSP2105 chips. The first customer to send me three thousand dollars will get my almost undivided attention and effort on that project, unlimited telephone support, and probably a _custom_ manual! Otherwise, I'll get to it as I feel like it. You may have already thought of it and tried it, but if not, here is a tip: When you try to get Towers of Hanoi running on the DSP Forth, take it a tiny step at a time, to see where things break down. First, can you connect to the DSP chip, using the PC as the terminal, type a carriage return and get an OK reply from the DSP Forth? Next step is to see if you can display the stack. If there is no .S word, then I recommend the following for a Q&D stack display : .S ROT DUP . ROT DUP . ROT DUP . ; It only displays the top 3 items, but that's usually enough for your debugging work, and it should work on _any_ Forth. Then, put three recognizable numbers on the stack (I would use 99 98 99) and try out the .S to see if it works. Always leave those three numbers on the stack to identify the top of the stack. Then start entering and testing each little piece of the T of H code. The point is to exercise each word, checking the stack before and after, to verify that the word works the way you expect. This way you can fix the word or fix your understanding of it. This advice is not directed specifically at you; I have felt from others' postings that a number of people fail to use this key power of Forth, ie to walk with certainty by testing, stand-a-lone, each "subroutine." This still doesn't answer your installation questions or questions about error messages, but maybe it will help. I'll look forward to further reports. -- Frank ----- This message came from GEnie via willett. You *cannot* reply to the author using e-mail. Please post a follow-up article, or use any instructions the author may have included (USMail addresses, telephone #, etc.). Report problems to: dwp@willett.pgh.pa.us _or_ uunet!willett!dwp