Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrew-serrano/7541f84f82dfd543a3193381ff1522c5 to your computer and use it in GitHub Desktop.
Save andrew-serrano/7541f84f82dfd543a3193381ff1522c5 to your computer and use it in GitHub Desktop.
Convert two's complement Miva
<mvt:comment>
Bitwise Operators
MDN:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#(Bitwise_NOT)
MivaScript:
http://www.mivascript.com/topic/operators.html
</mvt:comment>
<mvt:comment>
Negative -> Positive
</mvt:comment>
<mvt:eval expr="(BITOC -100) + 1" />
<mvt:comment>
Positive -> Negative
</mvt:comment>
<mvt:eval expr="(BITOC 100) + 1" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment