| View previous topic :: View next topic |
| Author |
Message |
rump Expert Cheater
Reputation: 0
Joined: 03 Oct 2007 Posts: 169
|
|
| Back to top |
|
 |
rump Expert Cheater
Reputation: 0
Joined: 03 Oct 2007 Posts: 169
|
|
| Back to top |
|
 |
rapion124 Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Mar 2007 Posts: 1095
|
Posted: Wed Dec 26, 2007 2:17 pm Post subject: |
|
|
| There are only three all purpose registers (eax, ecx, edx). You should not modify ebp, esp, or eip. ebx, esi, and edi can be used as all purpose but after using them, you should always return them to their original values.
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Wed Dec 26, 2007 2:30 pm Post subject: |
|
|
No, ebx isn't used anymore, so the GP registers are
And that's in the correct order, btw.
_________________
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Wed Dec 26, 2007 3:34 pm Post subject: |
|
|
| x0r wrote: | 3. No, a pointer has to point to a tangible address which can be either read or written to, hence why it's called a pointer  |
Actually, there is a dirty little hack where you can make a NULL pointer valid.
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Wed Dec 26, 2007 3:53 pm Post subject: |
|
|
| Flyte wrote: | | x0r wrote: | | 3. No, a pointer has to point to a tangible address which can be either read or written to, hence why it's called a pointer :P |
Actually, there is a dirty little hack where you can make a NULL pointer valid. :) |
Or you can use Delphi!
| Code: |
var
Lulz : pointer;
|
_________________
|
|
| Back to top |
|
 |
rump Expert Cheater
Reputation: 0
Joined: 03 Oct 2007 Posts: 169
|
Posted: Thu Dec 27, 2007 9:06 am Post subject: |
|
|
how do you define a pointer in asm? //thanks for all the answers guys!
_________________
C# boot camp, PM me if you want a simple application made and I'll give it a try! |
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Thu Dec 27, 2007 9:50 am Post subject: |
|
|
I'm a bit rusty, but try this:
_________________
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Thu Dec 27, 2007 10:55 am Post subject: |
|
|
Pointer = [Base Address Value] + Offset = Destination; (Address it points to)
lea eax,[ecx+20] will just store ecx+20 in eax.
|
|
| Back to top |
|
 |
rump Expert Cheater
Reputation: 0
Joined: 03 Oct 2007 Posts: 169
|
Posted: Thu Dec 27, 2007 12:39 pm Post subject: |
|
|
so its a bit of a bridge between 2 adresses then? adress1+offset --> adress2
therefor adress1 is adress2 minus the offset?
_________________
C# boot camp, PM me if you want a simple application made and I'll give it a try! |
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Thu Dec 27, 2007 1:48 pm Post subject: |
|
|
No, the value of address1 is address2-offset.
Lets say the address 10 holds the value 3, so the pointer 3 + 4 will point to the address 7.
|
|
| Back to top |
|
 |
|