rename.asm
bitfixer_bitfixer/dg/z88dk/libsrc/fcntl/zxvgs/rename.asm
;int rename(char *source, char *dest)
;returns 0 when OK
;
;	$Id: rename.asm,v 1.2 2015/01/19 01:32:44 pauloscustodio Exp $
;

	PUBLIC	rename

.rename
	POP	BC
	POP	HL	;new filename
	POP	DE	;old
	PUSH	DE
	PUSH	HL
	PUSH	BC
	RST	8
	DEFB	$CE	;also can move file to another path/disk...
	AND	$7F
	LD	L,A
	LD	H,0
	RET
