Page 1 of 1
Posted: Wed Jan 02, 2002 10:03 pm
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.
Posted: Thu Jan 03, 2002 6:55 am
by BackupUser
Restored from previous forum. Originally posted by Rings.
Are thy only for the amiga version ?
(e.c. unknown suffix or packer )
Siggi
Posted: Thu Jan 03, 2002 4:10 pm
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
Posted: Thu Jan 03, 2002 6:16 pm
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
Posted: Wed Jan 09, 2002 1:01 am
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.
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.
Posted: Sun Jan 13, 2002 3:57 pm
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.
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
