Projects > Easy Code IDE 32/64-bit
.while
fertxo:
hello, I don't know how to use the .while instruction. I'm trying to compare two strings and a want to use that instruction.
Can to help me anyone?
rsala:
Hi fertxo,
What do you exactly want to do? If you just want to compare two strings, you can use the "Cmp" instruction like this:
32-bit
====
Mov Eax, String1
Cmp Eax, String2
64-bit
====
Mov Rax, String1
Cmp Rax, String2
Take into account that you cannot compare (or any other operation) two strings, that is, two memory addresses in assembler. So, you have to load in a register at least one of them.
fertxo:
:thup:thanks, I just wanna try another way to compare two strings. the messagebox must advice if the second string is inside on first string.
jj2007:
Check the instr() macro
rsala:
Hi jj2007,
Thanks for your help! :thumbsup:
Navigation
[0] Message Index
[#] Next page
Go to full version