| View previous topic :: View next topic |
| Author |
Message |
pechochex How do I cheat?
Reputation: 0
Joined: 17 Oct 2007 Posts: 2
|
Posted: Wed Oct 17, 2007 12:16 am Post subject: writing value at address of pointer |
|
|
I hope this is the right section.
I know if i want to change the value (array) of an address (ex. 800000) i write this :
[enabled]
800000:
db "array i want".
[disabled]
but what do i write if i want to change the value of a pointer (ex. address of pointer -> 800000 offset -> 1234)
Last edited by pechochex on Thu Oct 18, 2007 12:59 am; edited 2 times in total |
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6300
|
Posted: Wed Oct 17, 2007 1:09 pm Post subject: |
|
|
| Depends on what the bytes are in memory view.
|
|
| Back to top |
|
 |
pechochex How do I cheat?
Reputation: 0
Joined: 17 Oct 2007 Posts: 2
|
Posted: Thu Oct 18, 2007 11:18 pm Post subject: |
|
|
what do you mean?
For example, if i want to change the value of address 800000, then i write this in autoassembler:
| Code: | [ENABLE]
800000:
DB 00 00 00 00 00
[DISABLE]
800000:
DB 01 02 03 04 05 |
but what about if i want to do the same thing (fill with 00's) but with an address of pointer
Address --> 01234567
adress of pointer --> 800000
offset --> 1234
I want to change the value of 01234567 but using the address of pointer and offset because the address 01234567 change everytime i run the game. ¿What script should i write?
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Thu Oct 18, 2007 11:29 pm Post subject: |
|
|
You don't HAVE to define bytes, (db) in this case its easier to use mov [pointer+offset],value.
If you want a simple jumping code, I preffer using db since I don't change the address it jumps to, so I only have to define the first byte (or 2 if its a far jump) of the op-code. (example je to jne is db 74 to db 75, p.s. those are short jumps)
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25975 Location: The netherlands
|
Posted: Fri Oct 19, 2007 12:02 am Post subject: |
|
|
If you only want to set a value at a specific address just use the address list
Or inject a piece of code that is called often that changes that specific address
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|