Re: A86: Thank You!
[Prev][Next][Index][Thread]
Re: A86: Thank You!
when hl is in parentheses, it means load into the byte pointed to by hl,
not directly into hl. Thus, this is an 8-bit load (we can only load 8
bits into a byte!). DE is a sixteen-bit register, and you are trying to
load it into an 8-bit location, which is why there is no such
instruction as 'LD (HL), DE'; it is impossible.
> This was my problem.
> ld (hl),de
> I appreciate all your diagnostics because i would have made all those
> mistakes in the future.
And, like all programmers, you will continute to make mistakes. We all
do. I more than most. :)
Cassady Roop
References: