BIT. - Work with Bits

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > BIT. - Work with Bits >

BIT. - Work with Bits

BIT.Swap Byte Word Order

Previous Top Next


MiniRobotLanguage (MRL)

 

BIT.Swap Byte Word Order

This command will swap the byte and the Word-Order of all bytes/Words in a DWORD Parameter(32-bit).

 

clip0963

 

Intention

 

Assume the numeric parameter contains a Dword with two Unicode Words, each 2 bytes.

This command will swap the byte and word-order of both.

 

 

Syntax

 

 

BIT.Swap  Byte 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 Byte Word Order|$$HEX

VTH.$$HEX

MBX.$$HEX

ENR.

 

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: