Re: A86: Where's my bug?


[Prev][Next][Index][Thread]

Re: A86: Where's my bug?





On Thu, 04 Jun 1998 11:03:50 -0500 Blake Johnson <johns627@tc.umn.edu>
writes:
>
>No, I tried it just to be sure and it didn't work.  If you think about
>it, you have done 100 iterations when B is less than 50 (if I am
>starting at 150).  Consequently, when B is subtracted from 50, the 
>only
>time that there wouldn't be a carry is when B is less than 50 (when be
>is greater than 50 the result is negative).  It just doesn't make 
>sense
>to me.  I hope someone can find my error.  Thanks for all or the help!

ok, i see now, here's how calc was before:
  call _OP6TOOP2        ;OP1=y
  call _op1set1         ;OP2=1
  call _FPSUB           ;OP1=1-y
  call _OP6TOOP2	;OP2=y ************
  call _FPMULT          ;OP1=y(1-y)
  call _OP5TOOP2	;OP2=x
  call _FPMULT          ;OP1=x*y(1-y)
  call _OP1TOOP6	;y now equals new value
the new one doesn't have the call to op6toop2.  if you put that back in,
it works.  i guess fpsub changes op2.

>
>--Blake Johnson
>
>
>

_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]


References: