Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   What is the meaning of XOR? (https://forum.exetools.com/showthread.php?t=3190)

Pompeyfan 01-11-2004 01:14

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.

LOUZEW 01-11-2004 01:47

XOR
 
It's a bit per bit exclusive OR !

Eg :

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

RESULT

5Dh = 01011101

Pompeyfan 01-11-2004 05:05

I'm afraid I still don't quite follow

MaRKuS-DJM 01-11-2004 05:19

replace, bit per bit:

0 & 0 = 0
0 & 1 = 1
1 & 1 = 0

R@dier 01-11-2004 11:35

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

Pompeyfan 01-11-2004 19:38

Righto, I think I follow that now, took me a while, thanks for persisting:)

JMI 01-13-2004 01:54

Just keep practicing the kick to bounce in off the side post of the net and you'll eventually get it right. :p

Regards,

Pompeyfan 01-13-2004 03:55

:D :D :D


All times are GMT +8. The time now is 19:39.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX