Re: A82: argh.. really dumb question
[Prev][Next][Index][Thread]
Re: A82: argh.. really dumb question
"ld (hl),hl" is a silly instruction if you think about it. all it
would do is store the address of itself. i'm not sure the best way,
but you could do:
Code:
....
ld hl,Array
ld de,50 ; replace 10 with 50
ld (hl),d
inc hl
ld (hl),e
....
Array:
.dw 10,20,30,40
i hope i did that in the right order (big-endian, little-endian wise).
-mike pearce
On Tue, 25 Aug 1998 13:01:13 -0700, you wrote:
>
>
>
> how the hell do i load hl into (hl)?? I know it can be done with ldir and
>shipping data around like that, but ld (hl),hl doesnt work.. hehe. I have
>an array of .dw's that I need to tamper with often, and it would be
>annoying to constantly use ldir. I know theres something really stupid I'm
>forgetting to do...
> ~Kurai
>
Follow-Ups:
References: