write a sum function in asm