Re: A86: More beginner questions


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

Re: A86: More beginner questions




Matt2000 wrote:
> 
> >> 19 t-states with carry, 20 t-states without add a,h            ;4
> t-states ld
> >> h,a                ;4 t-states
> >>  jr nc,skip            ;7 or 12 t-states
> >>  inc l                    ;4 t-states
> >> skip:
> >
> >  That looked screwy, so here it is again:
> >
> >   add a,h            ;4 t-states
> >   ld h,a                ;4 t-states
> >   jr nc,skip            ;7 or 12 t-states
> >   inc l                    ;4 t-states
> >skip:
> 
> Hmm..shouldnt it be -
> 
>     add a, l
>     ld l, a
>     jr nc, skip
>     inc h
> skip:
> 
> Which would be 19 T states or 24T. This gives an average of 21.5 T cycles,
> which is 1.5 T faster then mine. Hey, my routine wasn't that bad for only
> working with the z80 for little over half a year
> 
> Later,
>     Matt

19 or 20.  inc hl is skipped when jr = 12  :-)


References: