Re: A83: Re: Where is everybody?


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

Re: A83: Re: Where is everybody?




how do YOU figure that one?
A bit x,reg takes only 8 clocks.
A bit x,(HL) takes 12.

just a ld a,(HL) takes 7, and then a shift takes 8. if you want to test like bit
4, you have to shift 4 times.

//Olle

David Phillips wrote:
> 
> How do you figure that one?  It is many times more efficient to load the
> value into the accumulator, shift and test the carry flag, such as when
> reading keys using the ports.
> 
> > BTW, The best way to test a bit is to use the bit command.
> >
> > syntax:
> > bit x,Reg (x=bit,Reg=register) [I think!]


Follow-Ups: References: