Hacker News new | past | comments | ask | show | jobs | submit login

    testl	%eax, %eax
    jne	L6
    testl	%ebx, %ebx
    jne	.L7
When will eax, ebx not be equal to themselves? I'm sure there's a reason, but I don't know why.



It checks if they are equal to zero. (test is "and")

http://stackoverflow.com/questions/147173/x86-assembly-testl...


Oh true, I was thinking it was `cmp`. Thanks


Yeah that would make sense wouldn't it? ;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: