; csum.asm
[BITS 32]

global _csum

section .text

_csum:
    push  ebp ; preserve ebp
    mov      ebp,esp
    xor   eax,eax
    add   eax,[ebp+8]
    add   eax,[ebp+12]
    add   eax,[ebp+16]
    pop   ebp ; pop the topmost value in stack to ebp
    ret