Page 1 of 1

[Implemented] XOR

Posted: Tue Jan 01, 2002 11:57 am
by BackupUser
Restored from previous forum. Originally posted by Rings.

So i heared (or just a rumour ?)
that AND,NOR and OR will included in next upcoming versions.
What about XOR , XAND ?
In my vlink i will include encyption, using the XOR operator
like

G=P XOR T

or must i use inline asm ?
or are there other (undocumented) solutions ?


Siggi

Posted: Wed Jan 02, 2002 12:41 pm
by BackupUser
Restored from previous forum. Originally posted by Rings.

is this questions too lame to answer ?

Siggi

Posted: Wed Jan 02, 2002 12:50 pm
by BackupUser
Restored from previous forum. Originally posted by fred.

XOR will be added for 2.90. For now, you can use this Procedure (not tested but should work). InlineASM compile option must be ON.

Procedure XOR(a,b)
MOV eax,a
XOR eax,b
MOV a,eax
ProcedureReturn a
EndProcedure

Fred - AlphaSND

Posted: Wed Jan 02, 2002 6:20 pm
by BackupUser
Restored from previous forum. Originally posted by Rings.

thanx for the first time, it compiles without any errors.


Siggi

Posted: Wed Jan 02, 2002 9:07 pm
by BackupUser
Restored from previous forum. Originally posted by Rings.

and works fine in the readymade exe.

Siggi

Posted: Wed Jan 02, 2002 10:23 pm
by BackupUser
Restored from previous forum. Originally posted by fred.

Nice..

Fred - AlphaSND

Posted: Mon Jan 21, 2002 3:43 am
by BackupUser
Restored from previous forum. Originally posted by PB.
Procedure XOR(a,b)
MOV eax,a
XOR eax,b
MOV a,eax
ProcedureReturn a
EndProcedure
Hi Fred, I have some source code that looks like this:

Code: Select all

WindowLong Xor WS_EX_APPWINDOW
How would I pass this to your XOR procedure?


PB - Registered PureBasic Coder