1 %line 1+1 macro4.asm 2 3 4 5 6 %line 26+1 macro4.asm 7 8 9 [section .data] 10 EXIT_SUCCESS equ 0 11 SYS_exit equ 60 12 00000000 040000000500000002- list1 dd 4, 5, 2, -3, 1 13 00000000 000000FDFFFFFF0100- 14 00000000 0000 15 00000014 05000000 len1 dd 5 16 00000018 00000000 ave1 dd 0 17 0000001C 00000000 avesq1 dd 0 18 00000020 020000000600000003- list2 dd 2, 6, 3, -2, 1, 8, 19 19 00000020 000000FEFFFFFF0100- 20 00000020 000008000000130000- 21 00000020 00 22 0000003C 07000000 len2 dd 7 23 00000040 00000000 ave2 dd 0 24 00000044 00000000 avesq2 dd 0 25 00000048 2C000000 list3 dd 44 26 0000004C 01000000 len3 dd 1 27 00000050 00000000 ave3 dd 0 28 00000054 00000000 avesq3 dd 0 29 30 [section .text] 31 [global _start] 32 _start: 33 34 00000000 B800000000 mov eax, 0 35 %line 48+0 macro4.asm 36 00000005 8B0C25[00000000] mov ecx, dword[len1] 37 0000000C 49C7C400000000 mov r12, 0 38 00000013 488D1C25[00000000] lea rbx, [list1] 39 40 ..@3.sumLoop: 41 0000001B 420304A3 add eax, dword[rbx+r12*4] 42 0000001F 49FFC4 inc r12 43 44 45 00000022 E2F5 loop ..@3.sumLoop 46 47 00000024 99 cdq 48 00000025 F73C25[00000000] idiv dword[len1] 49 0000002C 890425[00000000] mov dword[ave1], eax 50 00000033 448B2C25[00000000] mov r13d, dword[ave1] 51 0000003B 890425[00000000] mov dword[avesq1], eax 52 00000042 F72C25[00000000] imul dword[avesq1] 53 54 %line 49+1 macro4.asm 55 00000049 B800000000 mov eax, 0 56 %line 49+0 macro4.asm 57 0000004E 8B0C25[00000000] mov ecx, dword[len2] 58 00000055 49C7C400000000 mov r12, 0 59 0000005C 488D1C25[00000000] lea rbx, [list2] 60 61 ..@4.sumLoop: 62 00000064 420304A3 add eax, dword[rbx+r12*4] 63 00000068 49FFC4 inc r12 64 65 66 0000006B E2F5 loop ..@4.sumLoop 67 68 0000006D 99 cdq 69 0000006E F73C25[00000000] idiv dword[len2] 70 00000075 890425[00000000] mov dword[ave2], eax 71 0000007C 448B2C25[00000000] mov r13d, dword[ave2] 72 00000084 890425[00000000] mov dword[avesq2], eax 73 0000008B F72C25[00000000] imul dword[avesq2] 74 75 %line 50+1 macro4.asm 76 00000092 B800000000 mov eax, 0 77 %line 50+0 macro4.asm 78 00000097 8B0C25[00000000] mov ecx, dword[len3] 79 0000009E 49C7C400000000 mov r12, 0 80 000000A5 488D1C25[00000000] lea rbx, [list3] 81 82 ..@5.sumLoop: 83 000000AD 420304A3 add eax, dword[rbx+r12*4] 84 000000B1 49FFC4 inc r12 85 86 87 000000B4 E2F5 loop ..@5.sumLoop 88 89 000000B6 99 cdq 90 000000B7 F73C25[00000000] idiv dword[len3] 91 000000BE 890425[00000000] mov dword[ave3], eax 92 000000C5 448B2C25[00000000] mov r13d, dword[ave3] 93 000000CD 890425[00000000] mov dword[avesq3], eax 94 000000D4 F72C25[00000000] imul dword[avesq3] 95 96 %line 51+1 macro4.asm 97 98 000000DB 48C7C03C000000 mov rax, SYS_exit 99 000000E2 48C7C700000000 mov rdi, EXIT_SUCCESS 100 000000E9 0F05 syscall 101