;section	.data
;error   db      'Error',10,0
;errorlen	equ	$-error
;section	.bss
;line    resb    80
	section	.text

;void z2a(char* d, char* s, int len, int ic);
	global z2a
z2a:
	push	ebp
	mov	ebp, esp
;------------------------------------
	mov	edi, [ebp+0x08]	;d
	mov	esi, [ebp+0x0C]	;s
	mov	ecx, [ebp+0x10]	;len
	mov	ebx, [ebp+0x14]	;ic
.m1:
	mov	al,[esi]
	mov	[edi], al
	inc	edi
	inc	esi
	loop	.m1
	mov	al, 0
	mov	[edi],al
;------------------------------------
	mov	esp, ebp
	pop	ebp
	ret
