| View previous topic :: View next topic |
| Author |
Message |
sherwood Newbie cheater
Reputation: 0
Joined: 06 Feb 2012 Posts: 11
|
Posted: Sat Mar 10, 2012 3:04 am Post subject: Help converting 10 line code [PHP] to [ASM] |
|
|
Hello, please convert someone this php code to assembler, im not sure with my own assembler converted code, so I would like to see correct way:] Thanks!
| Code: | $weapon = EDX;
$bullets = ECX;
if($weapon == 2) {
if($bullets != 6 || $bullets != 12) {
//some code
}
} else {
if($bullets != 1) {
//some code
}
}
|
|
|
| Back to top |
|
 |
Innovation Grandmaster Cheater
Reputation: 12
Joined: 14 Aug 2008 Posts: 617
|
Posted: Sat Mar 10, 2012 12:40 pm Post subject: |
|
|
This is in x86 assembly:
| Code: | cmp edx, 2
jne Second
cmp ecx, 6
jne First
cmp ecx, 12
jne First
jmp End
First:
; Some Code
jmp End
Second:
cmp ecx, 1
je End
; Some Code
End: |
|
|
| Back to top |
|
 |
sherwood Newbie cheater
Reputation: 0
Joined: 06 Feb 2012 Posts: 11
|
Posted: Wed Mar 21, 2012 4:03 pm Post subject: |
|
|
| Thanks a lot!
|
|
| Back to top |
|
 |
|