Programmer's Tools


String := ConvertToHex(IntegerToConvert, MaxSize, Trigger)


Explanation-

Converts IntegerToConvert to a MaxSize characters long hexadecimal string. Maximum length is 8. i.e.

Example

ConvertToHex( 255, 8, "" )

returns "000000FF".

Negative integers will always return 8 characters, so set size to 8 when negatives are expected.


String := ConvertToOct(IntegerToConvert, MaxSize, Trigger)


Explanation-

Converts Num to size characters octal string (Maximum length=12).


String := ConvertToBin(IntegerToConvert, MaxSize, Trigger)


Explanation-

Converts IntegerToConvert to a MaxSize characters-long binary representation (Maximum length=32).


Long := LogAnd(X,Y, Trigger)


Explanation-

Accepts two long integers and returns the result of a bitwise AND between the two values.

Example

To retrieve the low-order word from a 4-byte integer value:

LogAnd(value, IHX("0000FFFF"),"") .


Long := LogOr(X,Y, Trigger)


Explanation-

Accepts two long integers and returns the result of a bitwise OR between the two values.


Long := LogNot(X,Y, Trigger)


Explanation-

Accepts a long integer and returns the result of a bitwise negation of its value.


Long := LogXOR(X,Y, Trigger)


Explanation-

Accepts two long integers and returns the result of a bitwise XOR between the two values.


Long := LogShl(X,Y, Trigger)


Explanation-

Bit shifts long integer X argument left by Y bits.


Long := LogShr(X,Y, Trigger)


Explanation-

Bit shifts long integer X argument right by Y bits.


Long := Least(X,Y, Trigger)


Explanation-

Compares X and Y, returning the lesser of the two.


Long := Most(X,Y, Trigger)


Explanation-

Compares X and Y, returning the greater of the two.


Integer := LoByte(X, Trigger)


Explanation-

Accepts an integer argument and returns the value of the lo-order byte. (Intel format)


Integer := HiByte(X, Trigger)


Explanation-

Accepts an integer argument and returns the value of the hi-order byte. (Intel format).


Integer := LoWord(X, Trigger)


Explanation-

Accepts a long integer (4-byte) argument and returns the value of the lo-order word. (Intel format)


Integer := HiWord(X, Trigger)


Explanation-

Accepts a long integer (4-byte) argument and returns the value of the hi-order word. (Intel Format).