df_lib V1.0 released

Developed or developing a new product in PureBasic? Tell the world about it.
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 dreamlandfantasy.

Hi all,

Just to let you know that I have just released df_lib V1.0, a library that adds LSL() and LSR() commands to PureBasic.

It can be downloaded from:

http://www.dreamlandfantasy.clubamiga.c ... df_lib.lzx

Kind regards,

Francis.
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.

Are thy only for the amiga version ?
(e.c. unknown suffix or packer )


Siggi
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 El_Choni.

If LSL and LSR stand for Logical Shift Left/Right, this is achieved in PB for Windows (and I guess for Linux, too) by using inline asm:

Code: Select all

shl a, 1 ; Logical shift left of the variable a by 1
shr a, 1 ; the same, but right
But maybe the library does anything different.

Bye,

El_Choni
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.

LSR and LSL are supported by all PureBasic version with > operands:
a > 4

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 dreamlandfantasy.

Hey, what do you know, the > operands work! It would have been nice if they were in the PureBasic instructions. :wink:

The library was originally written to see how easy it was to incorporate new commands into PureBasic (Amiga version). Incidentally, it has been updated to V1.2 and features more commands such as rotation left/right, arithmetic shifts and some timer functions.

Kind regards,

Francis.
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.
Hey, what do you know, the > operands work! It would have been nice if they were in the PureBasic instructions. :wink:
Yeah, I didn't know about that either. But then the PB ref. manual doesn't even mention what operators you can use :/
I expect someone will say there's a power-of operator next :wink:
Post Reply