DsGetPixelAddr.asm
bitfixer_bitfixer/dg/z88dk/libsrc/rex/graphics/DsGetPixelAddr.asm
;
;	written by Waleed Hasan
;
;	$Id;$

	PUBLIC	DsGetPixelAddr
	EXTERN	pixaddr


.DsGetPixelAddr
	pop	de		;ret addr.
	pop	bc		;&bit	
	pop	hl		;y
	ld	a,l		; a=y
	pop	hl		;x
				; l=x
	push	de
	push	de
	push	de
	push	de
	
	ld	d,l		; d=x
	ld	e,a		; e=y
	
	ld	a,l
	and	$07
	
	jp	pixaddr

