Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

GetLowByte Function

Overview

The GetLowByte function retrieves the low byte (8 bits) from the source data word.

Syntax/Parameters

Syntax

byte = GetLowByte ( word data );

Parameters

data

A word (or any integer form). The value is treated as a 16 bit word data type.

Return Value

Returns a byte representing the low byte of data.

Remarks

The GetLowByte function performs the mathematical equivalent of:

value = data & 0x00FF;

Passing the GetLowByte function an inappropriate parameter (such as a string) results in a hard runtime error, and the script will abort.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic