Re: A86: Patching Menus


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

Re: A86: Patching Menus




It does always point to the current menu; it's a stack, and $c210 is the top of
the stack ... you don't need to check any other part of it.  Besides, what
you're doing here is going back into the application stack.

Kirk Meyer wrote:

> $c210 doesn't always point to the current menu. if you look at
> RAM86.INC, you will see that there is a menu pointer pointer :) what you
> need to do is:
>
>  ld hl,(menu_ptr_ptr)
>  dec hl
>  dec hl
>  dec hl
>  dec hl
>  ;hl now points to the current menu pointer
>
> if you posted your source it would be helpful
>
> Samuel P Camp wrote:
> >
> > I was trying to patch the memory menu, the one that shows: free memory,
> > memory clear, clear entry etc...  I need to load a pointer to my fake
> > menu at $C210 right?  Because that's what I did.  But it always showed
> > the real menu after I ran the program.
> >
> > >You need to load that location with a pointer to a fake menu, like one
> > that's
> > >somewhere in the sqrt program.  It would help if you could be more
> > specific
> > >-- which menu are you trying to patch?
> >
> > >> I was wondering about the ROM menus on the 86.  After looking at Dux
> > >> Gregis' article on menus, I decided to try to patch a ROM menu.  After
> > I
> > >> invoked the memory menu, I looked at $C210 and found the pointer $BA57
> > >> (on the emulator).  I tried to use the KEY program patch with this
> > value,
> > >> but it didn't work.  I also tried $57BA and again, nothing.  Can
> > anyone
> > >> help me?
> >
> > _____________________________________________________________________
> > 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]
>
> --
>
> =====================================
> =                                   =
> =   Kirk Meyer (mailto:_@ibm.net)   =
> = http://www.bigfoot.com/~kirkmeyer =
> =                                   =
> =   "Set your affection on things   =
> =    above, not on things on the    =
> =      earth."  Colossians 3:2      =
> =                                   =
> =====================================




Follow-Ups: References: