
title	buffer move
name	move

	assume cs:_text
_text	segment public byte 'code'
	public _move

_move	proc near

	push bp
	mov bp,sp
	push si
	push di

	mov di,[bp+4]		; get destin
	mov si,[bp+6]		; get source
	mov cx,[bp+8]		; get number of chars
	rep movsb		; move the data

	pop di
	pop si
	mov sp,bp
	pop  bp
	ret
_move  endp
_text	ends
	end
