1 %line 1+1 fpa64.asm 2 3 4 5 6 7 8 [section .note.GNU-stack] 9 [section .data] 10 [section .text] 11 [global fpa64] 12 fpa64: 13 00000000 4154 push r12 14 00000002 49C7C300000000 mov r11, 0 15 00000009 49C7C400000000 mov r12, 0 16 sumLoop: 17 00000010 4A8B04DF mov rax, qword[rdi+r11*8] 18 00000014 4901C4 add r12, rax 19 00000017 49FFC3 inc r11 20 0000001A 4939F3 cmp r11, rsi 21 0000001D 72EF jb sumLoop 22 0000001F 4C8922 mov qword[rdx], r12 23 24 %line 1+1 find and return average 25 00000022 4C89E0 mov rax, r12 26 00000025 4899 cqo 27 00000027 48F7FE idiv rsi 28 0000002A 488901 mov qword[rcx], rax 29 0000002D 415C pop r12 30 0000002F C3 ret 31