Re: A86: Need more help
[Prev][Next][Index][Thread]
Re: A86: Need more help
In a message dated 12/11/99 7:50:57 PM Eastern Standard Time,
chrisman@cts.com writes:
> 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 ;/
>
Nope. That's as fast as it gets unless you're going up or down by 1 in which
case you'd use dec e or inc e.
----
Jonah Cohen
<ComAsYuAre@aol.com>
http://linux.hypnotic.org/~jonah/