View previous topic :: View next topic |
Author |
Message |
SwaggaJackin' Master Cheater Reputation: 2
Joined: 06 Nov 2009 Posts: 304
|
Posted: Mon Jun 26, 2017 5:03 pm Post subject: User defined symbols that are pointers |
|
|
Is it possible to add a symbol that is a pointer?
I.E.
"myDLL.dll"+00D6CCE0 points to 0xABCDEFFF
I want to create a symbol that will have the value of the address pointed at (0xABCDEFFF).
Not sure how to do this. Thanks.
EDIT:
Figured it out, you just put the address in brackets '[' ']'
i.e. ["myDLL.dll"+00D6CCE0]
EDIT 2:
Is there a way to user define a symbol using a script or other autoloading method using a static address?
The auto assembler doesn't allow doing something like:
Code: |
[ENABLE]
registersymbol(TEST)
TEST:
["myDLL.dll"+00D6CCE0]
[DISABLE]
unregistersymbol(TEST)
|
Any other way? Thanks.
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Mon Jun 26, 2017 5:22 pm Post subject: |
|
|
Add a colon and swap with the label Code: | ["myDLL.dll"+00D6CCE0]:
TEST: |
Last edited by Zanzer on Mon Jun 26, 2017 5:27 pm; edited 1 time in total |
|
Back to top |
|
|
SwaggaJackin' Master Cheater Reputation: 2
Joined: 06 Nov 2009 Posts: 304
|
Posted: Mon Jun 26, 2017 5:25 pm Post subject: |
|
|
Zanzer wrote: | Add a colon Code: | ["myDLL.dll"+00D6CCE0]: |
|
Yes but I want that address to be a symbol, how would that be done? Thanks.
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Mon Jun 26, 2017 5:28 pm Post subject: |
|
|
Edited the answer, swap the two labels.
|
|
Back to top |
|
|
SwaggaJackin' Master Cheater Reputation: 2
Joined: 06 Nov 2009 Posts: 304
|
Posted: Mon Jun 26, 2017 5:29 pm Post subject: |
|
|
Zanzer wrote: | Edited the answer, swap the two labels. |
Thanks but unfortunately it isn't working.
EDIT:
Code: |
[ENABLE]
registersymbol(TEST)
["myDLL.dll"+00D6CCE0]:
TEST:
[DISABLE]
unregistersymbol(TEST) |
Getting the error message "TEST was supposed to be added to the symbollist, but it isn't declared"
|
|
Back to top |
|
|
STN I post too much Reputation: 42
Joined: 09 Nov 2005 Posts: 2672
|
Posted: Mon Jun 26, 2017 7:20 pm Post subject: |
|
|
label(TEST)
_________________
|
|
Back to top |
|
|
|