Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter FiveGeneral Functions (continued)

GetHighByte Function

Overview

The GetHighByte function retrieves the high byte (8 bits) from the source data word.

Syntax/Parameters

Syntax

byte = GetHighByte ( 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 high byte of data.

Remarks

The GetHighByte function performs the mathematical equivalent of:

value = (data & 0xFF00) >> 8;

Passing the GetHighByte 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