[A83] Re: Symbolic's functions in asm


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

[A83] Re: Symbolic's functions in asm




The problem is, is that the parser as well as my app returns a real/complex
number in op1/op2.  If its a string the parser or app returns, then op1 is
the name of the temp variable containging the string.  the romcall
outputexpr is expecting a name for a variable whether it is a real, a
string, or a equ var.  the romcall then gets freaked out when op1 actually
is a value rather than the name of a variable containing the value.  All
this is pretty hard to pick out by just looking at the source, but as soon
as you get in there setting break points with the debugger in flashsim, its
pretty easy to see.

Brandon Sterner

----- Original Message -----
From: "Peter Van den Bosch" <van.den.bosch.peter@pi.be>
To: <assembly-83@lists.ticalc.org>
Sent: Wednesday, April 17, 2002 8:46 AM
Subject: [A83] Re: Symbolic's functions in asm


>
> Thanks for the debugging. The testing program isn't yet working, but at
> least it doesn't totally crash anymore. Now it returns to the home
> screen with a 'domain' error. I think there was also another small
> mistake: the carry flag is set when the application is not found instead
> of when it is found. Here's once again the code I used:
>
> .NOLIST
> #define equ .equ
> #define EQU .equ
> #define END .end
> #include "83p.inc"
> .LIST
>
>   .org 9D95h
>   call mySecOf2
>   ld hl,0
>   B_CALL(_outputexpr)
>   ret
> mySecOf2:
>   B_CALL(_op1set2)
>   B_CALL(_pushrealo1)
>   ld hl,2
>   push hl
>   ld hl,name
>   B_CALL(_mov9toop1)
>   B_CALL(_findapp)
>   jp nc,Allrighty
>   B_CALL(_poprealo1)
>   pop hl
>   ret
> Allrighty:
>   out (6),a
>   ld hl,(4086h)
>   jp (hl)
>
> name:
>   .db AppObj,"Symbolic",0
>
> .end
> END
>
>
>
>
>




Follow-Ups: References: