Re: A83: Exchanging 16-Bit Numbers...?


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

Re: A83: Exchanging 16-Bit Numbers...?




On 10-Oct-98, Jkhum98@aol.com wrote:

>Whats the correct syntax for loading a 16-bit number from a location, to
>another location...? Something like this...

>...
>ld hl, (Var_Number_1)
>ld (Var_Number_2), hl
>...
>Var_Number_1:
>.dw 0
>Var_Number_2:
>.dw 0
>...

>That was just a general example of the direct approach I want to take, but I
>know that syntax is completely wrong. I know I could use like "ex hl, de" and
>work with that, but can someone tell me exactly what to use for it...?
>Thanks... =)

>--Jason K.

Why is that completely wrong?

Linus


References: