Re: A86: Re: rom calls


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

Re: A86: Re: rom calls




Cool! Can you post a revised description of the HOME, EXER?, and other
(sqrt) programs that you know of. I don't seem to see any information about
this elsewhere...

Later,
    Matt

>Here's a revised description of how sqrtPARSE gets called:
>
>On page 3 at $5848, it checks if the flag for sqrtPARSE is set. If it
>isn't, then it jumps ahead to $5851 and continues as normal. Otherwise, it
>calls $3105, which is equivalent to call pg. D,$598F. $598F pushes OP1 and
>then checks if sqrtPARSE exists. If it doesn't, it pops OP1 and returns to
>5851. If sqrtPARSE exists, it gets rid of the pushed OP1, pops hl 3 times,
>and calls _exec_asm to run sqrtPARSE. After _exec_asm returns, it does an
>alternate return, if one is installed - otherwise it jumps to pg. 3,$678e,
>which calls routines off the OP stack.
>
>--Joshua