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.
df_lib V1.0 released
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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:
But maybe the library does anything different.
Bye,
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
Bye,
El_Choni
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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.
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.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tinman.
I expect someone will say there's a power-of operator next
Yeah, I didn't know about that either. But then the PB ref. manual doesn't even mention what operators you can use :/Hey, what do you know, the > operands work! It would have been nice if they were in the PureBasic instructions.
I expect someone will say there's a power-of operator next