beautypg.com

Avago Technologies LSI53C876E User Manual

Page 216

background image

5-26

SCSI SCRIPTS Instruction Set

Miscellaneous Notes:

˘ Substitute the desired register name or address for “RegA” in the syntax examples.
˘ data8 indicates eight bits of data.
˘ Use

SCSI First Byte Received (SFBR)

instead of data8 to add two register values.

010

OR data with register and
place the result in the same
register. Syntax: “Move
RegA | data8 to RegA”

OR data with register and
place the result in the

SCSI

First Byte Received (SFBR)

register. Syntax: “Move
RegA | data8 to SFBR”

OR data with SFBR and
place the result in the
register. Syntax: “Move
SFBR | data8 to RegA”

011

XOR data with register and
place the result in the same
register. Syntax: “Move
RegA XOR data8 to RegA”

XOR data with register and
place the result in the

SCSI

First Byte Received (SFBR)

register. Syntax: “Move
RegA XOR data8 to SFBR”

XOR data with SFBR and
place the result in the
register. Syntax: “Move
SFBR XOR data8 to RegA”

100

AND data with register and
place the result in the same
register. Syntax: “Move
RegA & data8 to RegA”

AND data with register and
place the result in the

SCSI

First Byte Received (SFBR)

register. Syntax: “Move
RegA & data8 to SFBR”

AND data with SFBR and
place the result in the
register. Syntax: “Move
SFBR & data8 to RegA”

101

1

Shift register one bit to the
right and place the result in
the same register. Syntax:
“Move RegA SHR RegA”

Shift register one bit to the
right and place the result in
the

SCSI First Byte

Received (SFBR)

register.

Syntax: “Move RegA SHR
SFBR”

Shift the

SCSI First Byte

Received (SFBR)

register

one bit to the right and place
the result in the register.
Syntax: “Move SFBR SHR
RegA”

110

Add data to register without
carry and place the result
in the same register.
Syntax: “Move RegA +
data8 to RegA”

Add data to register without
carry and place the result in
the

SCSI First Byte

Received (SFBR)

register.

Syntax: “Move RegA + data8
to SFBR”

Add data to SFBR without
carry and place the result in
the register. Syntax: “Move
SFBR + data8 to RegA”

111

Add data to register with
carry and place the result
in the same register.
Syntax: “Move RegA +
data8 to RegA with carry”

Add data to register with
carry and place the result in
the

SCSI First Byte

Received (SFBR)

register.

Syntax: “Move RegA + data8
to SFBR with carry”

Add data to SFBR with carry
and place the result in the
register. Syntax: “Move
SFBR + data8 to RegA with
carry”

1. Data is shifted through the Carry bit and the Carry bit is shifted into the data byte.

Table 5.2

Read/Write Instructions (Cont.)

Operator

Opcode 111
Read-Modify-Write

Opcode 110
Move to SFBR

Opcode 101
Move from SFBR