Re: A86: Re: Re: undocumented instructions


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

Re: A86: Re: Re: undocumented instructions




Trey Jazz wrote:
> 
> >> ld (iy+N),(hl)
> >
> >nope
> 
> what you need to do is do a loop to compare (hl) to what it is and then
> set X,(iy+n)
> 
> it sucks...would save a LOT of checking if the z80 had it built in to handle
> the set (hl),..... command

What are you talking about?  You can just do this:
 ld a,(hl)
 ld (iy+N),a

I don't actually need to use it, I was just looking through the opcodes
and saw that this and similiar operations could be real instructions
that just aren't documented.  To use it (if it existed) you would need
to do this:

 ld hl,$c002
.db $fd,$76,XX

which would do the same thing as:

 ld a,($c002)
 ld (iy+N),a


Follow-Ups: References: