beautypg.com

Avago Technologies LSI53C1010 User Manual

Page 62

background image

3-22

The SCSI SCRIPTS Processor Instruction Set

Example

INTFLY 0x00000001, WHEN NOT COMMAND

INTFLY 0x200010F7, IF 0xF8 AND MASK 0x07

int_value

A user defined 32-bit value that is written to the DSPS register
at the time of the interrupt. However, since the processor
continues to execute, the value is immediately overwritten with
the next instruction fetch. Refer to the Note at the end of this
section for more information.

WHEN

Forces the SCRIPTS engine to wait for a valid SCSI bus phase
before continuing. A valid phase is indicated by assertion of the
SREQ/ signal.

IF

Causes the SCRIPTS processor to immediately check for a
valid SCSI bus phase. IF should not be used when comparing
for a phase as this could yield unpredictable results. The only
exception is using a WHEN conditional just prior to the IF
conditional for any given sequence of phase checks.

NOT

Negates the comparison. It clears the True bit if present,
otherwise the True bit is set.

Phase

Specifies the Message, Command/Data, and Input/Output bit
values that identify the SCSI phase in the instruction. The
desired phase value is compared with the actual values of the
SCSI phase lines before the SCRIPTS processor performs the
instruction. This field is only valid for the initiator mode and
should not be used in the target mode.

ATN

Indicates that an interrupt should take place based on the state
of the initiator SATN/ signal. This field is valid only for the target
mode and should not be used in the initiator mode.

data

Represents an 8-bit value that is stored in the data field of the
instruction. In addition the Compare Data bit is set.

MASK

Represents an 8-bit value that is stored in the mask field of the
instruction. Any bit that is set in the mask causes the
corresponding bit in the data byte to be ignored at the time of
the comparison.

CARRY

Indicates that a jump should take place based on the value of
the carry bit in the ALU. Carry comparisons cannot be made in
the same instruction as data or phase comparisons.

This manual is related to the following products: