Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


bitwiseLUAoperations

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source -> Plugin development
View previous topic :: View next topic  
Author Message
mgr.inz.Player
I post too much
Reputation: 217

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Jun 02, 2012 8:15 pm    Post subject: bitwiseLUAoperations This post has 1 review(s) Reply with quote

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

_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source -> Plugin development All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites