,


;
;
.........
ret
endp
end
, , end .
:
.MODEL
......
extrn _ : proc
......
.CODE
begin:
.......
end begin
public extrn global _:proc. - public extrn, .. . . , , global.
, :
Tasm32 ./ml /zi _1
Tasm32 /ml /zi _2
...
:
tlink32 /v _1 _2 ....import32.lib
, .
.
1. z=x+y.
.
; z=x+y.
; .
;
; main.asm
ideal
p686
model flat
extrn ExitProcess:proc
extrn Summa:proc
dataseg
x dd 5
y dd 3
z dd ?
codeseg
begin:
push [x] [y]
call Summa
mov [z], eax
call ExitProcess
end begin
; PROC.asm
ideal
p586
model flat
codeseg
proc _Summa
public _Summa
arg x:dword, y:dword
push ebp
mov ebp, esp
MOV EAX, [x]
add eax, [y]
pop ebp
ret
endp
end

Tasm32 /zi /ml main
Tasm32 /zi /ml proc
Tlink32 /v main proc import32.lib,
main.exe.