Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1668

Hide thumbs Also See for MANUALplus 620:

Advertisement

8.15.4 LOAD TWO'S COMPLEMENT (L–)
1668
Syntax:
L– (LOAD MINUS)
Operands:
B, W, D, K
Action:
Load the two's complement of the addressed operand, or of a constant, into
the word accumulator. If necessary, the control fills the accumulator with the
correct algebraic sign. The two's complement allows negative numbers to be
stored, i.e., a number loaded with the L command appears in the accumulator
with an inverted sign. This command can be used only with word processing.
Example:
Negate the content of byte B5 and then add it to the content of byte B6.
Assign the result to byte B8.
Initial state:
Byte
B5
= 15 (dec)
Byte
B6
= 20 (dec)
Byte
B8
= ?
Function
Load byte B5 into the
word accumulator, invert
the algebraic sign.
Add the contents of the
word accumulator and
byte B6.
Assign the gating result to
byte B8.
STL
Accumulator
content
L– B5
–15
+ B6
+5
= B8
+5
HEIDENHAIN Technical Manual MANUALplus 620
Operand content
+15
+20
+5

Advertisement

loading