Frode Tennebø wrote:
> I was playing around with z88dk and my new and improved 
> graphics/stdio library for SAM

Ooo, got any more tell us about that?


> are the following missing from Z80ops.h:
> 
> Z80ops.h:instr(0x67,4)   { xl=a; } endinstr;       // ld l,a 
> (or ixl/iyl ...)
> (and the rest from 0x61,4)

I think the existing version is ok, as the current definitions are:

instr(0x67,4)   { xh=a; } endinstr;                         // ld h,a
   and
#define xh      (((REGPAIR*)pHlIxIy)->B.h_)

pHlIxIy defaults to pointing to HL, but an index prefix changes that to
point to IX or IY.  The xh macro just uses the high-byte of whatever
register pair it's pointing to at the time.  So, for 0x67 that would
give one of LD H/IXh/IYh,A as appropriate, and similarly for the rest of
the 0x60->0x67 block (except 0x66).


> ...or am I missing somthing?

Even if the above covers your query, I guess that still means you have a
possible problem!  Do you have any other details that might help track
it down?

Best regards,

Si

Reply via email to