Re: A85: Help!!
[Prev][Next][Index][Thread]
Re: A85: Help!!
> Here's the problem...
>
> I want to CALL a routine without using the CALL statement... and the word
of
> the location I want to call is in HL... can someone help me?
>
> For example...
Try this bit of self-modifying code:
ld hl,addr ; the address we want to call
ld (callman+1),hl ; override the FFFF
callman:
CALL_($FFFF) ; call the address (FFFF overwritten)
I think that should work in ZShell, but I'm not sure :) Remember to update the
checksum before you leave tho.
-------
NAME : Mikel Blanchard, President of Macross Software
WEB : http://MacrossSoftware.home.ml.org/
EMAIL : cashonly@aol.com
ICQ : 3033904 (CashOnly)