1 %line 1+1 fptest1.asm 2 3 4 [section .data] 5 NULL equ 0 6 TRUE equ 1 7 FALSE equ 0 8 EXIT_SUCCESS equ 60 9 SYS_exit equ 0 10 00000000 D7A3703D0A5735409A- fltLst dq 21.34, 6.15, 9.12, 10.05, 7.75 11 00000000 999999999918403D0A- 12 00000000 D7A3703D22409A9999- 13 00000000 999919244000000000- 14 00000000 00001F40 15 00000028 0AD7A3703D0AF73F00- dq 1.44, 14.50, 3.32, 75,71, 11.87 16 00000028 00000000002D408FC2- 17 00000028 F5285C8F0A404B0000- 18 00000028 000000000047000000- 19 00000028 000000003D0AD7A370- 20 00000028 BD2740 21 00000058 7B14AE47E13A314000- dq 17.23, 18.25, 13.65, 24.24, 8.88 22 00000058 00000000403240CDCC- 23 00000058 CCCCCC4C2B403D0AD7- 24 00000058 A3703D3840C3F5285C- 25 00000058 8FC22140 26 00000080 0F000000 length dd 15 27 00000084 0000000000000000 lstSum dq 0.0 28 0000008C 0000000000000000 lstAve dq 0.0 29 [section .text] 30 [global _start] 31 _start: 32 00000000 8B0C25[00000000] mov ecx, [length] 33 00000007 48C7C3[00000000] mov rbx, fltLst 34 0000000E 48C7C600000000 mov rsi, 0 35 00000015 F20F100C25[00000000] movsd xmm1, qword[lstSum] 36 37 sumLp: 38 0000001E F20F1004F3 movsd xmm0, qword[rbx+rsi*8] 39 00000023 F20F58C8 addsd xmm1, xmm0 40 00000027 48FFC6 inc rsi 41 0000002A E2F0 loop sumLp 42 43 0000002C F20F110C25[00000000] movsd qword[lstSum], xmm1 44 45 00000035 F20F2A0425[00000000] cvtsi2sd xmm0, dword[length] 46 0000003E F20F2DC8 cvtsd2si ecx, xmm0 47 00000042 F20F5EC8 divsd xmm1, xmm0 48 00000046 F20F110C25[00000000] movsd qword[lstAve], xmm1 49 50 last: 51 0000004F 48C7C000000000 mov rax, SYS_exit 52 00000056 48C7C33C000000 mov rbx, EXIT_SUCCESS 53 0000005D 0F05 syscall 54 55 56 57 58 59 60 61