Re: A86: Re: patching menus


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

Re: A86: Re: patching menus






Samuel P Camp wrote:

> But that's what I did, I'm still confused.
> Source follows, mostly yours, Dux.
>
> code:

Switch the pop op1 and the db, other than that, it looks all right.  You
might want to do something about that label (my_menu), though, or else it
won't work after after you run an asm program.
There could also be something wrong with your patched menu, probably where
you added any new entries.

>   call $479f    ;pop op1
>   .db $8e,$28
>   ld hl,$57ba   ;presumably the pointer to the mem menu?
>   ld de,($c210)
>   call $403c    ;check for memory menu {cp hl,de}
>   jr nz,end
>   ld hl,my_menu ;make it point to my menu
>   ld ($c210),hl
> my_menu:
>
> Dux Gravis wrote:
> >First you need to check for the mem menu, so load hl or de with ($c210)
> and call _cphlde.  Then load a label pointing to the real menu into
> ($c210).
>
> _____________________________________________________________________
> You don't need to buy Internet access to use free Internet e-mail.
> Get completely free e-mail from Juno at http://www.juno.com
> Or call Juno at (800) 654-JUNO [654-5866]




References: