code	segment word public
assume	cs:code
public _neg
_neg:
; Negate (two's complement) a number
        push    bp
        mov     bp,sp
        mov     ax,word ptr [bp+4]
        neg     ax
        pop     bp
        ret     2
code ends
end
