DeViaN
June 24th, 2007, 09:52
Hello everybody 
I"m trying to figure out how to add Trailing backslash ("\"
at the of string,I"m not too good in assembler 
I looked into ascii table,and backslash is "92" as byte.
I tried to load that string into esi and then Add that byte,but it aways adds at beginning of that string.
ESI: "C:"
ADD BYTE PTR DS:[ESI],92
Can please somebody help me ?
EDIT: I need to detect length of that string in ESI ? if yes please how.

I"m trying to figure out how to add Trailing backslash ("\"


I looked into ascii table,and backslash is "92" as byte.
I tried to load that string into esi and then Add that byte,but it aways adds at beginning of that string.
ESI: "C:"
ADD BYTE PTR DS:[ESI],92
Can please somebody help me ?

EDIT: I need to detect length of that string in ESI ? if yes please how.