| View previous topic :: View next topic |
| Author |
Message |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Mon Mar 07, 2016 8:10 pm Post subject: "js" and "or eax,-01" |
|
|
Hi there, what does "js" mean? In the memory viewer, the explanation is "jump short if sign". Does "sign" has the same meaning as it has in "signed integer"?
My second question is: what is the following code usually used for?
My last question:
Does it mean this function returns integer 4?
|
|
| Back to top |
|
 |
hhhuut Grandmaster Cheater
Reputation: 6
Joined: 08 Feb 2015 Posts: 607
|
Posted: Tue Mar 08, 2016 2:59 am Post subject: |
|
|
1) jump if signed does exactly mean the signing of integeres (which is expressed by the most significant bit I think).
2) You can write that as an
whereas the binary expression would be 11111111111111111111111111111111b
3) As CE's disassembler window should already tell you this function does NOT return "4" as a result, but it pops 4 bytes off the stack before returning.
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Tue Mar 08, 2016 11:42 am Post subject: |
|
|
| or eax,-1 is just a faster way for your computer to perform mov eax,-1
|
|
| Back to top |
|
 |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Tue Mar 08, 2016 3:21 pm Post subject: |
|
|
Thanks guys.
|
|
| Back to top |
|
 |
gir489 Grandmaster Cheater
Reputation: 14
Joined: 03 Jan 2012 Posts: 841 Location: Maryland, United States
|
|
| Back to top |
|
 |
|