I have the string "-l" stored in a variable called lineSpace and I want to check if its equal to a value which I get from the console arguments.
I try to get the first part of the argument and then I compare it to the value stored in the variable. If I debug the code, they seem to share the same value but sadly it never takes the jump.
.data
lineSpace: .ascii "-l"
_start:
movl 8(%esp), %esi
movl (%esi), %eax
movl lineSpace, %ebx
cmpl %eax, %ebx
je ...