Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

5.22.3 Binary Word Functions

Binary word functions allow words and bytes to be pulled from large values and for larger values to be built from words and bytes. In addition, swap functions allow the transposition of bytes within a word which can be used to fix compatibility issues for ‘big-endian’ versus ‘little-endian’ (least significant versus most significant byte first).

Functions:

GetHighByte — Gets the high byte from a word.

GetLowByte — Gets the low byte from a word.

GetHighWord — Gets the high word from a dword (32 bits).

GetLowWord — Gets the low word from a dword (32 bits).

Make32Word — Makes a dword from a series of byte or word values, high to low.

Make64Word — Makes a qword from a series of byte values, high to low.

Swap16Word — Swaps bytes for big-endian to little-endian or vice versa.

Swap32Word — Swaps bytes for big-endian to little-endian or vice versa.

Swap64Word — Swaps bytes for big-endian to little-endian or vice versa.