ReverseBitsInBYTE (FUN)

FUNCTION ReverseBitsInBYTE : BYTE

Function returns the BYTE "byInput" with a reversed bit-order.

Example:

byInput = 16#01 = 2#00000001
->
MEM.ReverseBitsInBYTE(byInput) = 16#80 = 2#10000000
InOut:

Scope

Name

Type

Comment

Return

ReverseBitsInBYTE

BYTE

function returns a BYTE with reversed bit-order of "byInput"

Input

byInput

BYTE

BYTE to reverse