Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding reference to an external file in the code

Status
Not open for further replies.

Rookie69

Programmer
Mar 14, 2005
1
0
0
ZA
I Want to know how can i find in the assembly code of a program the reference to an external (txt) file.

e.g.
file.txt (external file)

1009="hello world"
1010="good morning world"

How can i find the reference to "1009" in the assembly code of a program? i think 1009 is the number of the message.

Thank you
 
how does the program use the data file?

does it load it into memory or does it access the file every time it needs to get information?

the following is how i would attempt to learn your answer

to properly understand how a program does what it does you have to examine the whole program starting from the simplest routines.

do the following:
1. get a good disassembler that provides jump and data labels where you can edit the name. there are plenty of good free ones to download.
2. starting with the simplest routines give each routine a descriptive name as to what it does.
3. once you have given names to the simpler routines you can start to see what the more complicated ones do and so on.

slowly you start to build up a picture of how the program works. its not easy even for experienced assemblists because you need acute knowledge on the results of the operations. in anycase a little patience goes a long way.

Straiph


"People who have nothing to say, say it too loud and have little knowledge. It's the quiet ones you need to worry about!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top