; test1.asm
;
; this program is designed to demonstrate simplified stack-based
; parameter passing using TASM's directives.
;
; written on Sun  09-10-1995  by Ed Beroset
; and released to the public domain by the author
;
        IDEAL
        MODEL small
        p486

        STACK   400h

        DATASEG
        CODESEG
        STARTUPCODE
        call    Example C, 2, 0, 3
        EXITCODE

proc Example C far
        USES    bx
        ARG     slope:WORD, intercept:WORD, X:WORD
        LOCAL   alpha:WORD
        mov     ax,[X]
        mov     bx,[slope]
        imul    bx
        mov     [alpha],bx
        adc     ax,[intercept]
        ret
endp
        END
