;----------------------------------------------------------
; Assembly program for the test function - called from the
; C program in file testex_c.c
;----------------------------------------------------------
.MODEL SMALL
.CODE
PUBLIC _test
_test   PROC    
	push    BP
	mov     BP,SP
	mov     AX,[BP+4] ; get argument1 x
	add     AX,[BP+6] ; add argument2 y
	sub     AX,[BP+8] ; subtract argument3 from sum
	pop     BP
	ret               ; stack cleared by C function
_test   ENDP
	END
