A86: Re: external strings


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

A86: Re: external strings





On Tue, 22 Sep 1998 17:48:25 -0400 "Dux Gregis" <assets@eden.rutgers.edu>
writes:
>
>/ ex de,hl>.  <call $4c3f> will increment ahl twice so that ahl points 

i believe that $4c3f is inefficient (time-wise) because it's on a
different page than _inc_ptr_ahl.  it's better to just call _inc_ptr_ahl
twice.
calling an off-page rom call takes 354 clocks.  most page d calls take 27
extra as well.
calling _inc_ptr_ahl twice would take 762 clocks in page switching, etc.
calling $4c3f uses 1089.
so, that's a difference of 327 clocks.  of course, you also save a huge 3
bytes!

ok, maybe none of you care.  i just think it's a bit wasteful.

-josh


_____________________________________________________________________
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: