|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > BIT. - Work with Bits > BIT. - Work with Bits |
MiniRobotLanguage (MRL)
BIT.Swap Word Order
This command will swap the Word order of both Words in a DWORD Parameter(32-bit).

Intention
Assume the numeric parameter contains a Dword with two Unicode bytes.
This command will swap the Word order of both bytes.
Syntax
BIT.Swap Word Order[|P1][|P2]
Parameter Explanation
P1 - Source variable with Numeric Value. If P2 is missing then its also the destination variable
P2 - (optional) destination variable. If omitted the result is placed in the variable in P1.
Example
'***********************************
' BIT.-Sample
'***********************************
VAN.$$HEX=&H2f3e1020
BIT.Swap Word Order|$$HEX
VTH.$$HEX
MBX.$$HEX
ENR.
Remarks
-
Limitations:
-
See also:
•