[A83] Re: Trouble with opx functions


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

[A83] Re: Trouble with opx functions




I have a problem with opx's too:

One of my first progs=simple:

random
op1toop4
random
op1toop3
random
op1toop2
random
cline    (draws line from (OP1,OP2)-(OP3,OP4))

The output of this program is very strange

My window size needs to be:
(xmin,ymin)-(xmax,ymax):
(0,0)-(1,4100) !!!
This is very strange and:
one coordinate has always x=0 and the other coordinate has always
y=0!

Please reply,

Wouter


*****

Do you know why W'98 crashes ALMOST everytime?
It is written this way:
If randomizer<0.99 then Crash



>From: "TypeR unknown" <typerfuture@hotmail.com>
>Reply-To: assembly-83@lists.ticalc.org
>To: assembly-83@lists.ticalc.org
>Subject: [A83] Trouble with opx functions
>Date: Fri, 27 Jul 2001 19:39:34 +0200
>
>
>I have a piece of code in my program for the TI-83 and it goes like this;
>
>
>     numerical input -> op1 (as described in AsmGuru)
>
>     call _formdisp ;show content of op1
>     call -op5toop2 ;put op5 in op2
>     call _op1exop2 ;exhange op1 and op2
>     call _fpdiv    ;divide op1/op2 -> op1
>     call _formdisp ;show content op1 which is now the result of the
>                    ;division
>
>   That should be fine, right?
>
>   Now here is the strange part the result of the division is not only
>   stored to op1 but also in op5 !!! This is very strange because I NEVER
>   said anywhere in my program to do this ! What is going on???
>
>
>After I discovered that this happened I changed my program a little bit
>so that it now looks like this;
>
>    numerical input
>
>    call _op6toop5   ;here is the change, first from op6 to op5 and from
>    call _op5toop2   ;here to op2
>
>    call _op1exop2
>    call _fpdiv
>    call _formdisp
>
>
>This has solved the problem but...I don't like the fact that this would 
>mean
>that I don't understand my own program , and I don't believe that this is
>the way to do it. After all it would only make the program bigger :)
>
>I do not have a lot of experience with assembly so please keep your answer
>as simple and clear as is possible, thanks
>
>
>
>
>
>
>
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>


_________________________________________________________________
Download MSN Explorer gratis van http://explorer.msn.nl/intl.asp