[A86] Re: Next question for the rom expert


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

[A86] Re: Next question for the rom expert




It seems like it would be better to write my own code than to use the
2-byte push calls.  Something like...

        ld de,(_OPS)
        ld hl,_OP1+9
        ld bc,10
        lddr
        ld (_OPS),de

...which wouldn't be in the same format, but that doesn't matter.
It just would have been nicer to have rom calls that do the whole
thing... Though $57d5 and $5d8b look to have those routines on rom
1.3 as well.

On Thursday, August 30, 2001, rabidcow wrote:

> hehehe...

> There are two calls on page d, one at $57d5 (in rom v1.2) to pop op1 and
> one at $5d8b to push _asapvar, but they're not in the jump table, so
> there's no guarantee they'll be in the same place in different rom vers. 

> The operator stack is rarely used to store _OPx registers. (which seems
> odd considering the name, but oh well)  The only place seems to be as a
> return address for calling asm programs from asm programs, but if you
> want to mess with that, the "recommended" method (ie, what the rom would
> do) would be something like:
>   ld      bc,(_OP1)
>   call    _PUSH2BOPER ; aka _push_bc_ops = $4783
>   ld      bc,(_OP1+2)
>   call    _PUSH2BOPER
>   ld      bc,(_OP1+4)
>   call    _PUSH2BOPER
>   ld      bc,(_OP1+6)
>   call    _PUSH2BOPER
>   ld      bc,(_OP1+8)
>   call    _PUSH2BOPER

> -josh

-- 
Aaron was here.
mailto:acurti1@umbc.edu





References: