Re: 83 asm question


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

Re: 83 asm question



>In BASIC, you can do<BR>
>c+1->c<BR>
><BR>
>I was thinking that you could do:<BR>
>ld c,c+1<BR>
><BR>
>in asm.  When compiling this, though, I got an error message.  how do I =<BR>
>add one to the register c and then store it in c?<BR>

Try:
Inc c

Or if you want to add more than one, do this:
Example c+5>c
ld a,5
add c,a

I'm new at asm, so don't kill me if that's not right, though.


References: