Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-11-2004, 01:14
Pompeyfan
 
Posts: n/a
What is the meaning of XOR?

Probably a dumb question, but what exactly does XOR do in programming language, I want to learn a bit more about what is actually happening in programs, I understand stuff like jumps, compare, push and mov, but XOR I really don't know, been a long time since I was at school, I can see it is a function on a calculator, but I never used it to my knowledge.
Reply With Quote
  #2  
Old 01-11-2004, 01:47
LOUZEW's Avatar
LOUZEW LOUZEW is offline
Friend
 
Join Date: Feb 2002
Location: Britanny
Posts: 101
Rept. Given: 1
Rept. Rcvd 2 Times in 1 Post
Thanks Given: 5
Thanks Rcvd at 7 Times in 7 Posts
LOUZEW Reputation: 2
XOR

It's a bit per bit exclusive OR !

Eg :

OAh = 00001010 ---
XOR
57h = 01010111 ---

RESULT

5Dh = 01011101
Reply With Quote
  #3  
Old 01-11-2004, 05:05
Pompeyfan
 
Posts: n/a
Unhappy

I'm afraid I still don't quite follow
Reply With Quote
  #4  
Old 01-11-2004, 05:19
MaRKuS-DJM's Avatar
MaRKuS-DJM MaRKuS-DJM is offline
Cracker + Unpacker
 
Join Date: Aug 2003
Location: Virtual World / Network
Posts: 553
Rept. Given: 7
Rept. Rcvd 6 Times in 4 Posts
Thanks Given: 3
Thanks Rcvd at 16 Times in 10 Posts
MaRKuS-DJM Reputation: 6
replace, bit per bit:

0 & 0 = 0
0 & 1 = 1
1 & 1 = 0
Reply With Quote
  #5  
Old 01-11-2004, 11:35
R@dier
 
Posts: n/a
OR
Binary
101010
001001
----------
101011 =

as long as one of the numbers is one then the out put is one

eg truth table

| X | Y |X+Y|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |


XOR (Exclusive OR) only one of the input numbers can be one/(on)

Binary
101010
001001
----------
100011 =


| X | Y |X(+)Y|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |


I hope this helps a bit


R@dier
Reply With Quote
  #6  
Old 01-11-2004, 19:38
Pompeyfan
 
Posts: n/a
Righto, I think I follow that now, took me a while, thanks for persisting
Reply With Quote
  #7  
Old 01-13-2004, 01:54
JMI JMI is offline
Leader
 
Join Date: Jan 2002
Posts: 1,627
Rept. Given: 5
Rept. Rcvd 199 Times in 99 Posts
Thanks Given: 0
Thanks Rcvd at 96 Times in 94 Posts
JMI Reputation: 100-199 JMI Reputation: 100-199
Just keep practicing the kick to bounce in off the side post of the net and you'll eventually get it right.

Regards,
__________________
JMI
Reply With Quote
  #8  
Old 01-13-2004, 03:55
Pompeyfan
 
Posts: n/a
Thumbs up

Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
meaning of a p-code Registration routine wassim_ General Discussion 0 09-29-2006 22:49


All times are GMT +8. The time now is 18:58.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )