Re: A86: FindPixel


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

Re: A86: FindPixel




Alright, I figured it out:

 ld a,%10
 rld

multiplies (hl) by 16 and adds 2.

Dux Gregis wrote:
> 
> Is this instruction useful?
> I mean, why would anyone want to use this?
> 
> > Not exactly.  The A register is involved, too.  Here's my cheesy ASCII
> > version of the picture in the Z80 databook:
> >
> > RLD             +--------------------+
> >                 |                    |
> >                 |                    V
> >        +-----+-----+        +-----+-----+
> >      A | 7-4 | 3-0 |   (HL) | 7-4 | 3-0 |
> >        +-----+-----+        +-----+-----+
> >                 ^             | ^    |
> >                 |             | |    |
> >                 +-------------+ +----+
> >
> > RRD             +-------------+ +----+
> >                 |             | |    |
> >                 |             V |    V
> >        +-----+-----+        +-----+-----+
> >      A | 7-4 | 3-0 |   (HL) | 7-4 | 3-0 |
> >        +-----+-----+        +-----+-----+
> >                 ^                    |
> >                 |                    |
> >                 +--------------------+
> >
> > --------
> > Dan Eble (mailto:eble@cis.ohio-state.edu)
> >          (http://www.cis.ohio-state.edu/~eble)
> >
> > "Behold, how great a matter a little fire kindleth!" -- James 3:5


References: