Re: A86: Need more help
[Prev][Next][Index][Thread]
Re: A86: Need more help
>From: Robin Kirkman <misty@drrobin.yi.org>
>Reply-To: assembly-86@lists.ticalc.org
>To: assembly-86@lists.ticalc.org
>Subject: Re: A86: Need more help
>Date: Sun, 12 Dec 1999 21:02:57 -0500
>
>
>well... actually you need to do this...
>
>ld e,a
>add 6,a
>ld a,e
>
>--robin
the arugument format is wrong there on this line
add 6,a ; incorrect you need to a 6 to a and to do that it is like
; this
add a,6 ; correct a is destination and 6 is what your adding
; you would get an error if you tried to compile before
Ricky Cobb
arcadesdude@hotmail.com
icq# 41440378
>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
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com