Re: A86: Overflow error


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

Re: A86: Overflow error





On Mon, 25 May 1998 20:14:03 -0500 "Blake Johnson" <johns627@tc.umn.edu>
writes:
>
>Well, I think I've figured out how to get the value in OP1 into a 
>register
>(please check to make sure that I did it right, though) but I'm still
>getting an overflow error.  What is causing the error?  Here is the 
>program:

>  call _OP6TOOP1	;OP1=y
>  call _OP2SET1		;OP2=1
>  call _FPSUB		;OP1=y-1
>  call _OP6TOOP2	;OP2=y
>  call _FPMULT		;OP1=y(y-1)
>  call _OP5TOOP2	;OP2=x
>  call _FPMULT		;OP1=x*y(y-1)

from the basic version:
>:For(N,0,150)
>:X*Y(1-Y)->Y
>:If N>100

is it supposed to be (1-y) or (y-1)?

also
>  ld b,100			;if Iterations>100 goto Plot
>  cp b
you can also do
  cp 100

and
>  ld a,(Iterations)
>  inc a
>  ld (Iterations),a
>  ld b,150			;if Iterations>150 next x
>  cp b
you could
  ld hl,Iterations
  inc (hl)
  ld a,150
  cp (hl)

-josh

>
>
>Thanks for any help that you can provide.  Later!
>
>--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: