Less8s (less than signed, 8 bit), Log16 (logical value, 16 bit), Log8 (logical value, 8 bit) – Echelon Neuron User Manual
Page 185
![background image](/manuals/735710/185/background.png)
Stack Transformation: (a, b -- aLocation: Near
Registers Affected: None
Example:
This example determines if d’10 < d’20.
push #d’20 ; (d’20)
push #d’10 ; (d’10, d’20)
call _less8 ; (1)
_less8s (Less Than Signed, 8 Bit)
This function returns a < b, where a and b are signed.
Stack Transformation: (a, b -- aLocation: Near
Registers Affected: None
Example:
This example determines if d’10 < -d’10.
push #@lb(-d’10) ; (-d’10)
push #d’10 ; (d’10, -d’10)
call _less8s ; (0)
_log16 (Logical Value, 16 Bit)
This function returns the logical representation of a 16-bit value. If the variable
is non-zero, true is returned, otherwise false.
Stack Transformation: (a(2) – a?1:0)
Location: Near
Registers Affected: None
Example:
This example returns the logical value for 5.
pushd #d’5 ; (d’5, 0)
call _log16 ; (1)
_log8 (Logical Value, 8 Bit)
This function returns the logical representation of a value. If the variable is non-
zero, true is returned, otherwise false.
Neuron Assembly Language Reference
175