Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sumArray PROC
- push ax
- push cx
- push si
- mov cx, *** ;Length
- mov ax, 0
- lea si, arr
- sum:
- add ax, [si]
- add si, {1 - Byte, 2 - Word}
- loop sum
- mov ans, ax
- pop si
- pop cx
- pop ax
- ret
- sumArray ENDP
Advertisement
Add Comment
Please, Sign In to add comment