Re: A83: Re: Re: Re: Re: Problem with a program
[Prev][Next][Index][Thread]
Re: A83: Re: Re: Re: Re: Problem with a program
> here is a better way of doing this loop
> it goes bc number of times
>
> loop:
> ;do stuff
> ;
> dec bc ;decrease counter
> ld a,b ;a=highbit
> or c ;b or c if both are zero then the zero flag is
> set
> jp nz,loop
> ;done with loop
Your loop costs 4+4+4+10=22 T-states.
Mine costs much less... only the time of a DJNZ (don't recall exact timing),
and occasionally, once per 256 loops, a few T-states more.
~Grauw
--
>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<
email me: laurensh@geocities.com or ICQ: 10196372
visit the Datax homepage at http://datax.cjb.net/
MSX fair Bussum / MSX Marathon homepage: http://msxfair.cjb.net/
>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<
Follow-Ups:
References: