assembly - IA86 ASM Code Reading -


i'm having hard time deciphering asm code below supposed do... direction great!

 pushl %ebp  movl %esp, %ebp  movl 8(%ebp), %ebx  movl 12(%ebp), %esi  movl $0, %ecx  l1: movl (%ebx, %ecx, 4), %edi  cmpl $100, %edi  jl l2 movl $100, (%ebx, %ecx, 4)  jmp l3  l2:  cmpl $-100, %edi  jg l3 movl $-100, (%ebx, %ecx, 4)  l3: addl $1, %ecx cmpl %ecx, %esi jne l1 leave ret  

it's function takes 2 arguments - pointer array of integers , size. goes through array, , replaces values on 100 100, , ones below -100 -100.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -