Re: LZ: variables


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

Re: LZ: variables



> Why would you use RST? RST is used for calling subroutines on rom page 0.
> Unless ti put routines for searching for variables in those locations, which
> i highly doubt. hmm


At $10 is  call to the rourtine that searches for a variable.
I quess Ti put tyhat there as a optimisation as variable finding is 
used so much in the rom  (the 1 byte RST 10h is much better that a 
call $271d (which is wher the routine is in rom v8, but you don't 
need to know that, as you can use RST 10h on all roms!)


Rob Taylor MAIL - mailto:rtaylor@rtaylor.u-net.com 
           WEB  - http://www.u-net.com/~rtaylor/    


References: