Word Execution With The And Command - HEIDENHAIN TNC 415 Technical Manual

Hide thumbs Also See for TNC 415:
Table of Contents

Advertisement

Word execution with the AND Command

Operands: B, W, D, K
Operation:
The contents of the Word Accumulator and the contents of the operand (B, W, D, K) are gated with
AND. In accordance with the different sizes of operand (B = 8 bit; W = 16 bit; D = K = 32 bit), 8, 16
or 32 bits will be influenced in the Accumulator.
Thus:
Bit 0 of the Accumulator is gated with bit 0 of the operand
Bit 1 of the Accumulator is gated with bit 1 of the operand and so on.
The result of the operation is stored in the Word Accumulator.
Example:
The contents of Byte B5 and Byte B6 should be gated with AND and the result assigned to Byte B8.
Initial state:
Line Instruction
Bit
1
L B6
2
A B5
3
= B8
Line 1: The contents of Byte B6 are loaded into the Accumulator.
Line 2: The contents of the Word Accumulator and Byte B5 are gated with AND.
Line 3: The gating result is assigned to Byte B8.
7-54
TNC 407/TNC 415/TNC 425
Byte B5 = 2A
(hex)
Byte B6 = 36
(hex)
Byte B8 = ?
Accumulator Contents
31 . . . 15
... x x x x x x x x x x x x x x x x x x
... 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0
... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0
... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0
3 Commands
7
0
Operand Contents
15
8 7
0
00110110
00101010
00100010
01.98

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 425eTnc 415fTnc 407Tnc 415bTnc 425

Table of Contents