Re: A86: More beginner questions
[Prev][Next][Index][Thread]
Re: A86: More beginner questions
Dux Gregis wrote:
> BIOSERRORS wrote:
>
> > As I said before, I'm still a beginner. How do I add the mem address that HL
> > points to with the value in the accumulator, so that HL points to a new
> > address?
> >
> > Like this:
> > HL points to $9000
> > and A has the value 200
> > add them so that HL now points to $90C8
> >
> > ??
>
> 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:
Follow-Ups:
References: