mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat Jun 02, 2012 8:15 pm Post subject: bitwiseLUAoperations |
|
|
Plugin adds bitwise operations on numbers - int32 or int64.
Functions so far:
dobitwiseAND(value1, value2)
dobitwiseOR(value1, value2)
dobitwiseXOR(value1, value2)
Usage:
Code: | --example1
val1 = 0x00ff
val2 = 0xff01
print(string.format('%X', dobitwiseAND(val1,val2) ))
print(string.format('%X', dobitwiseOR(val1,val2) ))
print(string.format('%X', dobitwiseXOR(val1,val2) ))
--example2
Value = 0x4444
Mask = 0xFFC0
Value = dobitwiseAND(Value, Mask)
print(string.format('%X',Value))
--example3
OtherValue = 12345432
OtherValue = dobitwiseXOR(OtherValue, OtherValue) -- clear all bits
print(OtherValue) |
Download 32bit:
http://dl.dropbox.com/u/63264075/bitwiseLUAoperations.dll
Download 64bit:
http://cheatengine.org/temp/bitwiseLUAoperations-64.rar
Source:
http://dl.dropbox.com/u/63264075/bitwiseLUAoperations.rar
_________________
|
|