Re: A86: Will this work?


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

Re: A86: Will this work?




At 14:58 1998-06-11 -0400, you wrote:
>> 	ld		h,a
>> 	ld		l,0					;hl = a * 256
>> 	srl		h
>> 	jr		nc,No_Carry
>> 	set		7,l
>> No_Carry:
>
>It should work, but replacing the "jr;set" by "rr L" would be smaller and
>faster.

...and

 rla
 ld h,a
 ld l,0
 rr l

one cycle faster (& byte shorter) _IF_ you know the carry was cleared when
the routine is performed...

--
Real name: Jimmy Mårdell                "can't go mucking with a 'void *'"
IRC......: Yarin                                // Apple's MPW C compiler
Email....: mailto:yarin@acc.umu.se        
Homepage.: http://www.acc.umu.se/~yarin/   <-- NEW HOMEPAGE!!


References: