beautypg.com

Figure8.6 table definitions, 7 relative addressing, Relative addressing – Avago Technologies LSI53C1010 User Manual

Page 197: Table definitions

background image

Relative Addressing

8-11

Figure 8.6

Table Definitions

8.7 Relative Addressing

In the relative addressing mode, the 24-bit signed value in the DSPS
register is the relative displacement from the current DMA SCRIPTS
Pointer (DSP) register. Using this mode, the 32-bit physical address is
formed at execution time, and there is no need to patch a SCRIPTS
instruction at run time. Relative addressing can be used for jumps or calls
and requires no initialization of jump and call addresses. This feature can

; Table definition and use in SCRIPTS

Table dsa_table \

SCSI_ID = ID{0x33, 0x00, 0x00, 0x00}
Data_buf = 512{??} , \

ID_msg = {0x80} , \
CMD_buf = {0x08, 0x00, 0x00, 0x00, 0x01, 0x00}

table_use:

SCRIPTS Code

Output File

Memory Definition

Entry table_use

SELECT ATN FROM SCI_ID, REL (resel)

MOVE FROM ID_msg, WHEN MSG_OUT

MOVE FROM CMD_buf, WHEN CMD

MOVE FROM Data_buf, WHEN DATA_IN

INT 0x0A

resel:

int 0x0B

ULONG SCRIPT [ ] = {

0x47000000

0x1E000000

0x1A000000

0x19000000

0x98080000

0x98080000

0x00000020

0x00000010

0x00000018

0x00000008

0x0000000A

0x0900000B

};

#define ENT_table_use
ULONG INSTRUCTIONS
ULONG PATCHES

0x00000000

= 0x00000006;

= 0x00000000;

Cmd (0x47) Table Offset (0x00)

Alternate Jump Address (0x20)

Cmd (0x1E)

Not Used

Table Offset (0x10)

Cmd (0x1A)

Not Used

Table Offset (0x18)

Cmd (0x19)

Not Used

Table Offset (0x08)

This manual is related to the following products: