title The addem Subroutine    (addem.asm)

; This subroutine links to Visual C++ 6.0.

.386P
.model flat
public _addem ; the code that understand the C++ call, notice how the main is in C++ an dnot here

.code
_addem proc near
    push   ebp
    mov    ebp,esp
    mov    eax,[ebp+16]    ; first argument
    add    eax,[ebp+12]    ; second argument
    add    eax,[ebp+8]     ; third argument
    pop    ebp
    ret                   
_addem endp
end

