Getting the value of a data block #3655
Unanswered
chiffreKing
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I just figuered out the problem. The problem is that I'm trying to access data with an instruction what won't work. What I do now is the following:
` I'm still asking myself if this is the clean way? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys,
I'm having troutble to get to the value of a constant of a DAT object.
What I'm doing so far is to iterate through the instructions and filter for the 'ldr' mnemonic. Then I'm accessing the opObject(1) and am getting the address of the DAT object.
`for func in funcs:
instr = listing.getInstructionAt(func.getBody().getMinAddress())
until here it works fine. but from here on I don't know what to do. I tried
newInst = currentProgram.getListing().getInstructionAt(addr(value))
to get to this address but I get this error:
NameError: name 'addr' is not defined
What I want to do is to get to the address of the DAT object and then read out the string '07000011h'
Please help me out. Thanks
Beta Was this translation helpful? Give feedback.
All reactions