I write AT & T syntax. This loop should be checked if the register is in the range 61-7A ASCII (this means that it is a small letter) - if not, then convert it to space '.
change:
movb (%esi), %bh
cmp $0x61,%bh
jge nothing
cmp $0x7A,%bh
jle nothing
movb $0x20,%bh
nothing:
movb %bh, (%esi)
addl $1,%esi
loop change
This is my cycle. ESI is my string pointer.
My problem is simple - it does not work, and I have no idea why.
source
share