Menu

No shift operator

Ed LeBel
2013-09-21
2013-11-19
  • Ed LeBel

    Ed LeBel - 2013-09-21

    Is there a plan to implement a shift operator >> or << to GCBasic?
    I am running Version 0.9 14/2/2010 and to shift twice I have to use two ROTATE statements.
    ">> 2" would be simpler.
    What is the latest version available?
    I find different versions with different abilities all over the place.
    And I started with the GCBasic download page.

    Ed

     

    Last edit: Ed LeBel 2013-09-21
  • cosmok82

    cosmok82 - 2013-11-19

    You can use the Rotate command to shift the data on the left or right, then select the location of the bit, like that: variable.[location] (ex var.1).
    See this discussion https://sourceforge.net/p/gcbasic/discussion/596084/thread/026da590/.

     

Log in to post a comment.