Divider bits in the binary values

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
4RESTER
User
User
Posts: 63
Joined: Thu Aug 19, 2010 11:03 pm
Location: Uman, Ukraine

Divider bits in the binary values

Post by 4RESTER »

In FASM is a separator for the binary values, such divider is a symbol Chr($27), and it works in the InlineAsm version, for example:

Code: Select all

! DD 1111'0000'10100101'00000000'11'1111'11b
! MOV  EAX,1111'0000'10100101'00000000'11'1111'11b
(in other assemblers as a separator binary values can be used the character "_")

This is very useful for visual interpretation of binary values.

Can You add a bits separator of the binary values for the PureBasic?

To be used in expressions such as:

Code: Select all

A = %111_0_0101_1_000_1111
Data.W     %111_0_0101_1_000_1111
See ya... Image
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: Divider bits in the binary values

Post by blueznl »

Oh yeah, this one I like! Also for hex please... $AF_CC_DE_FF and so on...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
4RESTER
User
User
Posts: 63
Joined: Thu Aug 19, 2010 11:03 pm
Location: Uman, Ukraine

Re: Divider bits in the binary values

Post by 4RESTER »

blueznl wrote:Oh yeah, this one I like! Also for hex please... $AF_CC_DE_FF and so on...
Unfortunately, as I thought, the authors of PureBasic, not in a hurry to really useful innovation.
Very sorry.
For example - the author of FASM does it literally within an hour.

At the moment I refused to use PureBasic. Use a clean FASM.
See ya... Image
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Re: Divider bits in the binary values

Post by remi_meier »

4RESTER wrote:
blueznl wrote:Oh yeah, this one I like! Also for hex please... $AF_CC_DE_FF and so on...
Unfortunately, as I thought, the authors of PureBasic, not in a hurry to really useful innovation.
Very sorry.
For example - the author of FASM does it literally within an hour.

At the moment I refused to use PureBasic. Use a clean FASM.
Seems like FASM doesn't do serious regression testing.
@PB-Team: Are you sure you still want to depend on
such untested software? :mrgreen:

On a more serious note:
The PB-Team has a release cycle where you should
be able to rely on the stability of a released version.
That includes regression tests after adding new features
like this. Maybe you want to apply for the Alpha-testing
team (I'm not one of them) and then you'll see faster
feature inclusion but also delay and canceling.
Every serious developer knows that even the tiniest
of changes can result in hard to detect show-stopper
bugs.

greetz
remi
Athlon64 3700+, 1024MB Ram, Radeon X1600
Post Reply