I have a script like this
get TXT_SIZE asize
for i = 0
savepos TMP
if TMP >= TXT_SIZE
break
endif
get INPUT line
string ELEMENTS S INPUT NAME CRC ZSIZE HASH1 SIZE HASH2
#print "%NAME%"
string HEX p= "%08x" NAME
print "%HEX%"
set TMP string "$"
string TMP += HEX
set VAR long TMP
print "%VAR%"
next i
How would I use findloc on the VAR variable
is there a way to convert a string to c notation or a int to c notation?
a different example might be
get TEST long
findloc OFFSET binary TEST
findloc question
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: findloc question
chrrox wrote:How would I use findloc on the VAR variable...
a different example might be
get TEST long
findloc OFFSET binary TEST
i asked this same question here once and i believe you would use this
Code: Select all
get TEST long
findloc OFFSET long TEST
some examples
viewtopic.php?p=21917#p21917
-
- Posts: 388
- Joined: Thu Aug 07, 2014 10:28 pm
Re: findloc question
This worked for my file here thanks