Could you please post an example in assembly language that uses functions with parameters. Something simple, like function that returns a sum of two elements.
Couldn't google any example that is simple enough.
ADDED:
.model small
.data
.stack 320h
.code
extrn writer:near
add_numbers PROC
ARG number1:WORD
ARG number2:WORD
MOV ax, number1
MOV bx, number2
ADD ax, bx
CALL writer ; this procedure prints the contents of ax
RET
add_numbers ENDP
.startup
PUSH 1
PUSH 2
CALL add_numbers ; instead of 3 it prints -11602
call writer ; instead of 3 it prints 0
.EXIT
END