1 %line 1+1 sum_ave.asm 2 3 4 5 [section .data] 6 EXIT_SUCCESS equ 0 7 SYS_exit equ 60 8 00000000 EA030000EC030000EE- lst dd 1002, 1004, 1006, 1008, 10010 9 00000000 030000F00300001A27- 10 00000000 0000 11 00000014 05000000 len dd 5 12 00000018 00000000 sum dd 0 13 [section .text] 14 [global _start] 15 _start: 16 17 00000000 8B0C25[00000000] mov ecx, dword[len] 18 00000007 48C7C600000000 mov rsi, 0 19 20 SumLoop: 21 0000000E 8B04B5[00000000] mov eax, dword [lst+rsi*4] 22 00000015 010425[00000000] add dword[sum], eax 23 0000001C 48FFC6 inc rsi 24 0000001F E2EB loop SumLoop 25 26 last: 27 00000021 48C7C03C000000 mov rax, SYS_exit 28 00000028 48C7C700000000 mov rdi, EXIT_SUCCESS 29 0000002F 0F05 syscall 30 31 32