[Implemented] Bitwise XOR (again!)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] Bitwise XOR (again!)

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.

Fred,

Can we pleeeeeeeeaaaaaaaaaaaaaassssssssseeeeeeeeee have a bitwise xor operator?

It's really important for GeoWorld. And a bitwise NOT operator would be nice too. I'll pay for PureBasic again if you implement it :)

Thanks.


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.10)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by bluez.

i second that request... xor and not should, i guess, be part of the package...


... this copy of me has been unregistered for 36 years (no spam please)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

viewtopic.php?t=720

As Fred said, yes for the Next version, perhaps in february.

Year ? Do not ask such silly questions.


Its a long way to the top if you wanna .....CodeGuru
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.
As Fred said, yes for the Next version, perhaps in february.

Year ? Do not ask such silly questions.
Haven't the next versions (3.0 and 3.10 it seems) been and gone since then?
Has there been any mention of this being implemented?
Is XOR or NOT mentioned in the docs?

But then perhaps you're happy to have to have procedures all over the place to replace, fix and implement missing features of PB?


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.10)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by bluez.

well, i can confirm it's not in there, just tried it...

a.l = not b.l
a.l = b.l xor c.l

in gfa, a value / variable is considered 'true' if it is unequal to zero, and it looks like pure does the same thing

here are some things i am familiar with (i have not checked if they exist in pure!)

NOT ' binairy not
! ' binairy not
!! ' explicit logical not
AND ' binairy and
& ' same
&& ' explicit logical and
^^ ' logical xor
XOR ' well... :)
EQV ' not xor
IMP ' too deep for me :-/
<< ' shift left
SHL ' <<
SHR
ROR
ROL
DIV
MOD


some commands:

ADD a,b ' a = a + b
INC x ' x = x + 1
DEC x ' x = x - 1
x++ ' x = x + 1
x+=1 ' x = x + 1

or functions:

x=ADD(a,b,c,d,e) ' x = a + b + c + d + e


... this copy of me has been unregistered for 36 years (no spam please)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Andre.

Hi Fred, still nothing to tell us ?
Please give us a little hope for next version(s)...


Regards
André

*** German PureBasic Support ***
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.
Hi Fred, still nothing to tell us ?
As Fred said, yes for the Next version.
(do not ask for the number or year)

Its a long way to the top if you wanna .....CodeGuru
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

I will try for v3.20. Not sure tought. I've posted an asm replacement for XOR op on this forum one day...

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Done ! XOR is now working :).

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

And the bitwise NOT is added too...

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Andre.

Absolutely GREAT Fred, this should give also Rings new hope - PB not only for gaming direction. Right, Fred ?


Regards
André

*** German PureBasic Support ***
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Who has said that ? Me ? Never. v3.20 will prove that with a major upgrade focused on Gadgets...

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Franco.
v3.20 will prove that with a major upgrade focused on Gadgets...

Fred - AlphaSND
Gadgets? can you be more precise?
BTW: Have you got my 2 mails (send it to [url]mailto:alphasnd@purebasic.com[/url])


Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.
Absolutely GREAT Fred, this should give also Rings new hope - PB not only for gaming direction. Right, Fred ?

Its a long way to the top if you wanna .....CodeGuru
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Andre.
Who has said that ? Me ? Never. v3.20 will prove that with a major upgrade focused on Gadgets...


Now also the Doubles + some more (?) variable types and all application programmers should become more happy


Regards
André

*** German PureBasic Support ***
Post Reply