String substitution in ObjAsm with a suffix.
Adrian Carpenter (10173) 16 posts |
Hi, I am reversing some code and I’m trying to perform a string substitution in ObjAsm and I’m coming up blank on whether there’s a way of doing the exact thing I’m trying to do, or whether it’s just plain impossible, I’m coming up blank when searching for posts either here or elsewhere. I bought a license of the DDE a few weeks back and I’m on the latest version, there was an update a couple of days after I purchased that I was sent by email. What I want to do is effectively prefix a string substitution with another string, but there seems to be no way of ending a substation string and ObjAsm. An example where I want to use both the substitution “$Hello” as a prefix to the string “World”. GBLS HelloHello SETS “Hello” GBLS HelloWorldHelloWorld SETS “$HelloWorld” Here ObjAsm fails because $HelloWorld isn’t a global. This might look like it’s not useful, but I ‘m needing to prefix some strings and allow that to be modified easily, “HelloWorld” itself isn’t useful. If there’s a space, then there’s no problem “$Hello World” works as expected, as dos $Hello$World" in the case where there’s a $World" global. I’ve tried everything I could think of, multiple sets of quotes, +, multiple $$, appending $ or $$ to the rear of a global when used in a string, nothing works, so I’m just assuming that this isn’t possible or ObjAsm just doesn’t have a way of coping with this, but maybe I’ve missed the obvious or haven’t actually tried what I though I tried, but I am coming up blank. |
Stuart Swales (8827) 1357 posts |
You could use |
Adrian Carpenter (10173) 16 posts |
This is probably what I’ve been looking for! Thank you for the reply, I will go check. |
Adrian Carpenter (10173) 16 posts |
Yes! This was exactly what I was looking for, no idea how I couldn’t find it in the ObjAsm manual, but now I know. |