Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bit Shifts
#5
Thanks, Its better from day to day...

<!-- l --><a class="postlink-local" href="http://www.boriel.com/forum/viewtopic.php?f=13&t=302">viewtopic.php?f=13&t=302</a><!-- l -->
Version 1.0.8: "Added shift bit instructions (SHL, SHR)"
This function is not in the lexicon yet, like some other. If you read all announcements of new versions, you will find some other commands that are not in the lexicon yet too.
I dont know how to add yet, but there are some problems in the lexicon: "Identifiers shown in bold are taken from the Sinclair BASIC"
But ITALIC and BOLD weren't in the lexicon before, and they are there now, but in bold! In the Sinclair BASIC syntax there are no ITALIC and BOLD.
@boriel, can you please correct it?
Edit:
@britlion
try this:
Code:
dim a as ubyte
dim b as ubyte
a=34
b=a shl 1
print b
Strange, but it does not work correctly with Uintegers, only Ubyte and ULong. Using UInteger gives "Traceback (most recent call last)" error. Another Bug?
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)