Pages: 1 2 »
  Print  
Author Topic: XOR DOES NOT WORK  (Read 4480 times)
Offline (Male) RetroX
Posted on: February 21, 2009, 05:59:52 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
-6 ERROR; FIX IT NOW.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Unknown gender) Game_boy
Reply #1 Posted on: February 22, 2009, 10:01:41 AM
Member
Joined: Apr 2008
Posts: 228

View Profile
Can't you use other boolean operators as a workaround?
Logged
Offline (Male) RetroX
Reply #2 Posted on: February 22, 2009, 10:11:18 AM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Yes, but xor is cooler.

BTW, the problem is that ENIGMA is converting "xor" into "^^" instead of "^." >_>
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Unknown gender) Game_boy
Reply #3 Posted on: February 22, 2009, 11:07:33 AM
Member
Joined: Apr 2008
Posts: 228

View Profile
XOR is extremely cool.
Logged
Offline (Unknown gender) score_under
Reply #4 Posted on: February 28, 2009, 06:18:07 AM

Member
Joined: Aug 2008
Posts: 308

View Profile
XOR is extremely cool.
Of course, I mean... it spells "rox" backwards, so how can it not rock?
Logged
Offline (Male) Josh @ Dreamland
Reply #5 Posted on: March 01, 2009, 08:29:11 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
Bwahahahaha, I thought I went back over that. *shrugs*

I guess I just had no idea what to do with it, so I left it.

You'll probably live. I think I'll replace it with ^ for now, and if that leads to problems, I'll make a function for it. -.-
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) RetroX
Reply #6 Posted on: March 02, 2009, 06:52:52 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
A xor function?  That ruins all of the fun.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Female) serprex
Reply #7 Posted on: April 03, 2009, 07:54:30 PM
Smooth ER
Developer
Joined: Apr 2008
Posts: 106

View Profile WWW
^ is not ^^. 5^3 should return 0 in that case, but it'll end up as 6. Just use !x!=!y instead of x^^y
Logged
Offline (Male) Josh @ Dreamland
Reply #8 Posted on: April 20, 2009, 03:24:10 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
Serpy, I'mma choke you. This is why we work with bools.

If I really must, I could have ENIGMA parse in a logical xor, but it shouldn't be a problem.  Could always do !!x ^ !!y.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) RetroX
Reply #9 Posted on: April 22, 2009, 08:51:22 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Double negatives are bad.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Unknown gender) score_under
Reply #10 Posted on: April 23, 2009, 10:52:42 AM

Member
Joined: Aug 2008
Posts: 308

View Profile
Double negatives are bad.
Then use tricky asm: (assuming var is in eax)
Code: [Select]
test eax,eax
setnz al
and eax,1
Logged
Offline (Female) serprex
Reply #11 Posted on: July 27, 2009, 10:39:32 AM
Smooth ER
Developer
Joined: Apr 2008
Posts: 106

View Profile WWW
!x^!y == !!x^!!y
Logged
Offline (Male) RetroX
Reply #12 Posted on: July 27, 2009, 11:08:03 AM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
!x^!y == !!x^!!y
true^false == false^true
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) Josh @ Dreamland
Reply #13 Posted on: July 29, 2009, 01:08:21 AM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
What serp said. Probably a good idea.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Female) serprex
Reply #14 Posted on: July 29, 2009, 10:04:21 PM
Smooth ER
Developer
Joined: Apr 2008
Posts: 106

View Profile WWW
(!!x^!!y) == (!x^!y) == (!x!=!y)
Logged
Pages: 1 2 »
  Print