Re: A86: simple math optimization


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

Re: A86: simple math optimization




At 18:30 1998-05-11 -0400, you wrote:
>If e is less than 16, you can do this:
>
> ld (hl),d
> ld a,e
> rld

Well, not THAT easy:

ld hl,temp  ; 10
ld (hl),d   ;  7
ld a,e      ;  4
rld         ; 18
ld l,(hl)   ;  7
ld h,a      ;  4

50 T cycles - 1 T cycles faster than mine routine :-/ Requires an
extra byte though.

--
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.algonet.se/~mja/


References: