8 load and store instructions, Load and store instructions – Avago Technologies LSI53C876E User Manual
Page 228

5-38
SCSI SCRIPTS Instruction Set
5.8 Load and Store Instructions
The Load and Store instruction provides a more efficient way to move
data from/to memory to/from an internal register in the chip without using
the normal memory move instruction.
The Load and Store instructions are represented by two Dword opcodes.
The first Dword contains the
and
register values. The second Dword contains the
value. This is either the actual memory
location of where to Load and Store, or the offset from the
, depending on the value of bit 28 (DSA Relative).
A maximum of 4 bytes may be moved with these instructions. The
register address and memory address must have the same byte
alignment, and the count set such that it does not cross Dword
boundaries. The memory address may not map back to the chip,
excluding RAM and ROM. If it does, a PCI read/write cycle occurs (the
data does not actually transfer to/from the chip), and the chip issues an
interrupt (Illegal Instruction Detected) immediately following.
The SIOM and DIOM bits in the
register determine
whether the destination or source address of the instruction is in Memory
space or I/O space, as illustrated in the following table. The Load and
Store utilizes the PCI commands for I/O read and I/O write to access the
I/O space.
Bit A1
Bit A0
Number of Bytes Allowed to Load and Store
0
0
One, two, three or four
0
1
One, two, or three
1
0
One or two
1
1
One
Bit
Source
Destination
SIOM (Load)
Memory
Register
DIOM (Store)
Register
Memory