Re: A86: Need more help
[Prev][Next][Index][Thread]
Re: A86: Need more help
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
Follow-Ups:
References: