[A83] Re: call vs. bcall()


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

[A83] Re: call vs. bcall()



On Mon, 23 Dec 2002 17:25:47 +0000
"Pieter Van Nuffel [aka SUCKER]" <sucker_pvn@hotmail.com> wrote:

> When there is a part like this:
> 
>   ...
>   call _newline
>   ret
>   ...
> 
> It can be easily replaced by a single jump to _newline. But this is
> not so with the Ti-83+ bcall(). I do know bcall's are for rom page
> swapping, but what about it than?

bcall(xxxxh) becomes rst 28h \ .dw xxxxh. The call is necessary because
the routine at 0028h pops the return address from the stack to get the
pointer. Therefore jp 0028h \ .dw xxxxh wouldn't work. You always need a
call using this system. That's why bjump() is also defined as a call.
The name bjump() is somewhat confusing though. It isn't to jp what bcall
is to call.



References: