I might figure this out from The Google, but if not, maybe someone - TopicsExpress



          

I might figure this out from The Google, but if not, maybe someone around here can explain this bit of x86 assembly to me (AT&T dialect): leal -0x1(%esi), %ecx cmpl $0x2, %ecx jae 0x42295 The jump is to another part of the function. The %esi register contains a 32 bit integer. As best as I can tell, this just subtracts 8 from the value in %esi, shoves that result in %ecx, and then jumps if the value in %ecx is greater than or equal to 2. Why not just do this: cmpl $0xa, %esi jae 0x42295 The value in %ecx is never used again.
Posted on: Thu, 11 Sep 2014 22:14:28 +0000

Trending Topics




© 2015