パラメータ付きの関数を使用するアセンブリ言語の例を投稿してください。2 つの要素の合計を返す関数のような単純なもの。
十分に単純な例をグーグルで検索できませんでした。
追加した:
.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