Re: A82: Re: Re: Re: need help with this rutini


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

Re: A82: Re: Re: Re: need help with this rutini




> RRC H \ RRC H \ RRC H
8 T *3
> LD  A,H
4T
> AND %11100000
7T
> LD  H,A
4T
> LD  A,L
4T
> AND %11111000
7T
> SRL A \ SRL A \ SRL A
8 T *3
> XOR H
4T
Total 6*8+4*4+7*2=48+16+14=78 T

LD A,L      ; 4 T
SRL H \ RRA ; 8+4 T
SRL H \ RRA ; 8+4 T
SRL H \ RRA ; 8+4 T

Total 3*12+4=40 T

The secind one is a bit faster and should do the same thing, but I have not
tested it.

Dines
-----------------------------------------------------------------------
 Dines Justesen
 "There are two major products that come out of Berkeley: LSD and UNIX.
  We don't believe this to be a coincidence."     -- Jeremy S. Anderson
 Email: dines@aub.dk
 WWW:   www.student.dtu.dk/~c958362
-----------------------------------------------------------------------

----- Original Message -----
From: "Roger Levy" <trip_n_save@hotmail.com>
To: <assembly-82@lists.ticalc.org>
Sent: Sunday, May 21, 2000 5:05 PM
Subject: Re: A82: Re: Re: Re: need help with this rutini


>
> here, this worked:
>
> RRC H \ RRC H \ RRC H
> LD  A,H
> AND %11100000
> LD  H,A
> LD  A,L
> AND %11111000
> SRL A \ SRL A \ SRL A
> XOR H
> RET
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>




Follow-Ups: References: