beautypg.com

2 second dword, Figure5.8 read/write instruction – second dword, 3 read-modify-write cycles – Avago Technologies LSI53C1010R User Manual

Page 274: 4 move to/from sfbr cycles, Second dword, Read-modify-write cycles, Move to/from sfbr cycles, Read/write instruction – second dword

background image

5-26

SCSI SCRIPTS Instruction Set

Version 2.2

Copyright © 2000–2003 by LSI Logic Corporation. All rights reserved.

5.4.2 Second Dword

This section describes the second Dword of the Read/Write Instruction
register.

Figure 5.8

Read/Write Instruction – Second Dword

DA

Destination Address

[31:0]

This field contains the 32-bit destination address where
the data is to move.

5.4.3 Read-Modify-Write Cycles

During these cycles the register is read, the selected operation is
performed, and the result is written back to the source register.

The Add operation increments or decrements register values (or memory
values if used in conjunction with a Memory-to-Register Move operation)
for use as loop counters.

Subtraction is not available when

SCSI First Byte Received (SFBR)

is

used instead of data8 in the instruction syntax. To subtract one value
from another when using SFBR, first XOR the value to subtract
(subtrahend) with 0xFF, and add 1 to the resulting value. This creates the
twos complement of the subtrahend. The two values are then added to
obtain the difference.

5.4.4 Move to/from SFBR Cycles

All operations are read-modify-writes. However, two registers are
involved, one of which is always the

SCSI First Byte Received (SFBR)

.

The possible functions of this instruction are:

Write one byte (value contained within the SCRIPTS instruction) into
any chip register.

Move to/from the

SCSI First Byte Received (SFBR)

from/to any other

register.

Alter the value of a register with AND, OR, ADD, XOR, SHIFT LEFT,
or SHIFT RIGHT operators.

31

0

DSPS Register