[comp.lang.forth] what stack does FSIN use and send to?

cucmk@ux1.cts.eiu.edu (Chris Klaus) (02/26/91)

I have been trying to get the following to work and was wondering if
anyone could shed some light on the subject...

the program is as follows:
  
DEGREES
: SIN 360 0
      DO I 
         I FSIN
         DACA
      LOOP ;

Where "n DACA" is a command that send "n", a voltage, to port.  I have a 
oscilliscope hooked up to port; but instead of a sine wave... I get
straight lines!!!  It's as if "n DACA" is using n=I instead of n="I FSIN"
Why is this???  Is FSIN going to some other stack??  
Also if I just type:
   
DEGREES 
10 FSIN .
 
I get 10 back from the "." command, which takes the first number off the
stack...??? shouldn't the first number on the stack be the sin of 10 not 10??

  
                                Confused,
                                         Bard

-- 
_______________________________________________________________________________
---         Bard             --------  Just a follower of the Orange Road  ----
--- internet: cucmk@eiu.edu  --------        Madoka is the best!           ____
_______________________________________________________________________________