assembly nasm, compute sum of an array of real integers(floats) -


itemprop = "text">

The logic of this makes sense to me, though any ideas that it is still giving a segfault is appreciated. ..

  Address: Push Ebux Push EBP Push EDI Push ECX Push ESI MOG EDI, 0; Initialize counter for 0 MEG SE, 0; 0 Start starting for MGC Exclend, 0; Zero XX and ADX MEUADADX, 0 move ebx, [ebp]; The starting position of ARX's ADX in EBC Max ADI, [EBP + 12]; Array size ADOOAP: MOG ECX, [EBX]; MOV high order mode ADX, [EBX + 4]; MOV low order ECX push EDX FDR quotes [EBX] push; The second input is now in Floating Point Register, especially stat. Pop dword ebp pop dword ebp; The first is the top of the input system stack (the stack addressed by byte); fadd qword [ebx]; The first input is added to the second input and the sum; St0 changes the other input into ebayx, 8th ADI CMP ASI, ADI JG Edadon JMP AdLop Addendon: MOM EX, Compages; Setup print_string to display a message call; Dr. Carter's Library Push Dover 0; Make a space on the SystemStack stack for yoga, push down 0; Ditto FST Coordinated [EBX]; Copy the content of Stat currently above the System Stack PopXx; Copy 4 msb to ampex pop adx; Copy the 4 LSB copy two for ACX calls; 8-byte value call print_nl; Newline Pop Aci PopXx Pop ADI Pop EBP Pop EBX Rate    

Comments