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 


What is the {OR , AND} in Scripts, What for them?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sat Jan 02, 2016 6:16 am    Post subject: What is the {OR , AND} in Scripts, What for them? Reply with quote

What is the {OR , AND} in Auto assembly Scripts, What for them?
Do difference with the XOR?
How to write Auto assembly Scripts?
are used them for specific values ?
Back to top
View user's profile Send private message
mgostIH
Expert Cheater
Reputation: 3

Joined: 01 Jan 2016
Posts: 159

PostPosted: Sat Jan 02, 2016 6:23 am    Post subject: Re: What is the {OR , AND} in Scripts, What for them? Reply with quote

sjl002 wrote:
What is the {OR , AND} in Auto assembly Scripts, What for them?
Do difference with the XOR?
How to write Auto assembly Scripts?
are used them for specific values ?


Like XOR, they are logic gates, but they behave differently.
I already responded about XOR, in asm the syntax is the same as it, but the outcome is ofc different.
Search for logic gates on google for better understandament.

_________________
Do you need to ask me something? Feel free to join my discord server at: https://discord.gg/At4VZXA or ask me something in my YouTube channel: https://www.youtube.com/c/mgostIH
Back to top
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sat Jan 02, 2016 7:15 am    Post subject: Reply with quote

Thanks.
Somebody can help me.{Dark byte, you can help me}.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Jan 02, 2016 9:19 am    Post subject: Reply with quote

AND will combine every bit equal to 1 in both values into the result.
OR will combine every bit equal to 1 in either value into the result.

Code:
 72 == 0x48 == 0100 1000
219 == 0xDB == 1101 1011

    0100 1000
AND 1101 1011
    ---- ----
    0100 1000 == 0x48 == 72

    0100 1000
 OR 1101 1011
    ---- ----
    1101 1011 == 0xDB == 219
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4718

PostPosted: Sat Jan 02, 2016 9:36 am    Post subject: Reply with quote

What is the {OR , AND} in Auto assembly Scripts, What for them?
They're used for bit manipulation. See Zanzer's post above.

Do difference with the XOR?
A simple way of thinking of xor is this: If the bits are the same, the result is 0. If the bits are different, the result is 1.
Code:
 72 == 0x48 == 0100 1000
219 == 0xDB == 1101 1011

    0100 1000
XOR 1101 1011
    ---- ----
    1001 0011 == 0x93 == 147


How to write Auto assembly Scripts?
http://forum.cheatengine.org/viewtopic.php?t=570083

are used them for specific values?
AA scripts can be used to modify any address you want.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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