| View previous topic :: View next topic |
| Author |
Message |
CodeKiller Advanced Cheater
Reputation: 0
Joined: 30 Jun 2009 Posts: 87
|
Posted: Mon May 11, 2015 5:47 am Post subject: ASM- MOV |
|
|
Hello,
I saw some times ago someone using a specific syntaxe for the MOV command so you don't need to "convert" values from dec to hex, integer to double, etc.
Does someone has a full example of the available "shortcut" with the MOV command ?
For example :
MOV eax, 500 <-- how to say that it's 500 (1F4) and not 1 280 ?
Thanks !
|
|
| Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Mon May 11, 2015 6:13 am Post subject: |
|
|
mov eax,(int)500 //for integer
mov eax,(float)500 //for float
You can also use #500 instead of (int)500 for integer.
_________________
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Mon May 11, 2015 8:18 am Post subject: |
|
|
Applies to CE specifically, and to the AA part only. The memory viewer stills only shows hex values.
Any other debugger will still show and assemble in hex. Just remember this so you don't get confused in future when dealing with other debuggers or reading books if ever.
In your example
MOV eax, 500
500 is hex because it is automatically assumed that you are typing hex unless you specify explicitly if its decimal or float etc like Geri showed above.
_________________
|
|
| Back to top |
|
 |
CodeKiller Advanced Cheater
Reputation: 0
Joined: 30 Jun 2009 Posts: 87
|
Posted: Thu Jul 23, 2015 1:48 am Post subject: |
|
|
I lost sight of this topic...
Yep, working fine !
Thanks for your reply !
|
|
| Back to top |
|
 |
|