pushbyte and pushint opcodes
Is there a difference when using 0 to 127 values?
pushbyte and pushint opcodes Posted on: 10/26/2013 7:11am
Quote Post
Aobscan(_pos,24 45)
For example, I would like to change the value of health to 100.
I know that pushbyte max value is 127(2f) and pushint is way more larger.
Is a difference between using 24 64 or 2d 07? or can I use any of them?
pushbyte 100 = 24 64
pushint 100 = 2d 07



RE: pushbyte and pushint opcodes Posted on: 10/26/2013 9:07am
Quote Post
disgruntled old man
Depends....If you have the number 100 in your constant pool then you can use either. Using pushint, you're limited to the numbers used in the code. With pushbyte you can use whatever you want up to 127. If you can steal a byte from somewhere else in the code you could use pushshort (25 xx xx), which has a max value of 32767 I believe.

Kadat or anyone else for that matter, feel free to chime in and correct me if I'm giving bad info here, it's been awhile...



New to Kong Hack and want to learn the basics? Check out the [Kong Hack 101] and the [Hacking 101].
Wanna learn how we make the hacks? Start with getting [the tools], then check these out: [AoB tutorial] | [.sol guide] | [Unity3d tutorial] | kadat's [video tutorials]
And if you don't already have it, check out the [Kong Hack Ultra Trainer]. You'll be glad you did!
RE: pushbyte and pushint opcodes Posted on: 10/26/2013 10:18am
Quote Post
Pushint
2D = pushint opcode
07 = arbitrary constant pool index

In one .swf the number at index seven in the constant pool is 100, in another it's 13215.

Pushbyte
24 = pushbyte opcode
64 = 100 in hexadecimal
RE: pushbyte and pushint opcodes Posted on: 10/27/2013 1:20am
Quote Post
Aobscan(_pos,24 45)
Thanks for the replies.
Additional info added to my knowledge. :)