Re: A86: Need more help


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

Re: A86: Need more help




Nope, he had it right the first time.
Please dont send in telling someone to do something when its wrong. It just
creates more problems and confusion.


> well... actually you need to do this...
>
> ld e,a
> add 6,a
> ld a,e
>
> --robin
>
> Chris Remo wrote:
> >
> > Sorry to have posted so many "I need help"-ish posts, but as I'm really new
> > to asm, everything seems longer than it should, at least in comparison to
> > other languages I've ever programmed.  Thus, I just have one quick question.
> > If I wanted to add a number (say, 6) to the E register, is there a faster
> > way than this to do it?
> >
> >  ld a,e         ;\
> >  add a,6      ; >Adds 6 to e
> >  ld e,a         ;/
> >
> > Thanks very much
> >
> > Chris Remo



References: