beautypg.com

2 second dword, 7 memory move instructions, Section 5.7, “memory move – Avago Technologies LSI53C825AE User Manual

Page 220: Instructions, Section 5.7, “memory move instructions

background image

5-36

SCSI SCRIPTS Instruction Set

WVP

Wait For Valid Phase

16

If the Wait for Valid Phase bit is set, the LSI53C825A
waits for a previously unserviced phase before comparing
the SCSI phase and data.

If the Wait for Valid Phase bit is cleared, the LSI53C825A
compares the SCSI phase and data immediately.

DCM

Data Compare Mask

[15:8]

The Data Compare Mask allows a SCRIPT to test certain
bits within a data byte. During the data compare, if any
mask bits are set, the corresponding bit in the

SCSI First

Byte Received (SFBR)

data byte is ignored. For instance,

a mask of 0b01111111 and data compare value of
0b1XXXXXXX allows the SCRIPTS processor to
determine whether or not the high order bit is set while
ignoring the remaining bits.

DCV

Data Compare Value

[7:0]

This 8-bit field is the data compared against the register.
These bits are used in conjunction with the Data
Compare Mask Field to test for a particular data value.

5.6.2 Second Dword

Jump Address

[31:0]

This 32-bit field contains the address of the next
instruction to fetch when a jump is taken. Once the
LSI53C825A fetches the instruction from the address
pointed to by these 32 bits, this address is incremented
by 4, loaded into the

DMA SCRIPTS Pointer (DSP)

register and becomes the current instruction pointer.

5.7 Memory Move Instructions

For Memory Move instructions, bits 5 and 4 (SIOM and DIOM) in the

DMA Mode (DMODE)

register determine whether the source or

destination addresses reside in memory or I/O space. By setting these
bits appropriately, data may be moved within memory space, within I/O
space, or between the two address spaces.

The Memory Move instruction is used to copy the specified number of
bytes from the source address to the destination address.