	.xlist

;Macros for generating IXh/IXl/IYh/IYl instructions.
;These instructions are generated by
;appending a DDh byte to instructions referring to H, to access IXh,
;or to instructions referring to L, to access IXl.
;For IY, FDh is used instead of DDh.

ld_iyh_a	macro
	db	0FDh
	ld	h,a
	endm

ld_iyl_a	macro
	db	0FDh
	ld	l,a
	endm

ld_iyh_b	macro
	db	0FDh
	ld	h,b
	endm

ld_iyh_c	macro
	db	0FDh
	ld	h,c
	endm

ld_a_iyh	macro
	db	0FDh
	ld	a,h
	endm

ld_a_iyl	macro
	db	0FDh
	ld	a,l
	endm

ld_c_ixh	macro
	db	0DDh
	ld	c,h
	endm

ld_ixh_a	macro
	db	0DDh
	ld	h,a
	endm

ld_a_ixh	macro
	db	0DDh
	ld	a,h
	endm

ld_a_ixl	macro
	db	0DDh
	ld	a,l
	endm

ld_a_iyh	macro
	db	0FDh
	ld	a,h
	endm

or_ixl	macro
	db	0DDh
	or	l
	endm

or_iyl	macro
	db	0FDh
	or	l
	endm

cp_ixl	macro
	db	0DDh
	cp	l
	endm

cp_ixh	macro
	db	0DDh
	cp	h
	endm

cp_iyl	macro
	db	0FDh
	cp	l
	endm

cp_iyh	macro
	db	0FDh
	cp	h
	endm

;
	.list
;
