06.08.2013 Views

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Word execution with the EXCLUSIVE OR command<br />

Operands: B, W, D, K<br />

Operation:<br />

The contents of the Word Accumulator and the contents of the operand (B, W, D, K) are gated with<br />

EXCLUSIVE OR. In accordance with the different sizes of operand (B = 8 bit; W = 16 bit;<br />

D = K = 32 bit), 8, 16 or 32 bits will be influenced in the Accumulator.<br />

Thus: Bit 0 in the Accumulator is gated with bit 0 in the operand<br />

Bit 1 in the Accumulator is gated with bit 1 in the operand and so on.<br />

The result of the operation is stored in the Word Accumulator.<br />

Example:<br />

The contents of Byte B5 and Byte B6 are to be gated with EXCLUSIVE OR and the result assigned<br />

to Word W8.<br />

Initial state Byte B5 = 2A (hex)<br />

Byte B6 = 36 (hex)<br />

Word W8 = ?<br />

Line Instruction Accumulator Contents Operand Contents<br />

Bit 31 . . . 15 7 0 15 8 7 0<br />

... x x x x x x x x x x x x x x x x x x<br />

1 L B6 ... 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0 00110110<br />

2 XO B5 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 00101010<br />

3 = W8 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 00000000 00011100<br />

Line 1: The contents of Byte B6 are loaded into the Accumulator.<br />

Line 2: The contents of the Word Accumulator and Byte B5 are gated with EXCLUSIVE OR.<br />

Line 3: The gating result is assigned to Word W8.<br />

8/95 <strong>TNC</strong> <strong>360</strong> 3 Commands 7-53

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!