cpc_setup_open.asm
bitfixer_bitfixer/dg/z88dk/libsrc/fcntl/cpc/cpc_setup_open.asm
;
;	CPC fcntl Routines
;       Donated by **_warp6_** <kbaccam@free.fr>
;
;	$Id: cpc_setup_open.asm,v 1.2 2015/01/19 01:32:43 pauloscustodio Exp $
;


		PUBLIC	cpc_setup_open

; We enter with sp + 4 = buffer, sp + 6 = lengthm sp + 8 = filename
.cpc_setup_open
		ld	ix,4
		add	ix,sp
		ld	e,(ix+0)
		ld	d,(ix+1)
		ld	b,(ix+2)
		ld	l,(ix+4)
		ld	h,(ix+5)
		ret


