[A83] Trouble with opx functions
[Prev][Next][Index][Thread]
[A83] Trouble with opx functions
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