View previous topic :: View next topic |
Author |
Message |
Hatschi Master Cheater
Reputation: 2
Joined: 28 Jan 2010 Posts: 327
|
Posted: Tue Dec 30, 2014 7:36 am Post subject: How to compare UNICODE strings? |
|
|
How to compare for unicode strings in AA?
cmp dword ptr[esi+8],'Test'
doesn't work. It fails. The string value at this address is 'T' but the unicode value is 'Test'.
//edit: Nvm ofc I can compare for 4 bytes. But just curious, if I would want to enter the string in AA what should I type for unicode string?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25806 Location: The netherlands
|
Posted: Tue Dec 30, 2014 8:25 am Post subject: |
|
|
a compare like that isn't possible in CE, nor would it be practical. You can then only test 2 characters at a time. First Te and then st
i'd go for a loop that compares the two strings
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
Hatschi Master Cheater
Reputation: 2
Joined: 28 Jan 2010 Posts: 327
|
Posted: Tue Dec 30, 2014 9:09 am Post subject: |
|
|
Ah so unicode takes the twice memory space as normal string?
Because normal strings I've always compared by taking the first four letters (if compared as dword).
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25806 Location: The netherlands
|
Posted: Tue Dec 30, 2014 9:38 am Post subject: |
|
|
Yes, in unicode Test would be stored as T,0, e,0, s,0, t,0
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
|