Figure9.12 external script (scripts.lis file), External script (scripts.lis file) – Avago Technologies LSI53C1010 User Manual

Page 231

Advertising
background image

Using the SCRIPTS RAM

9-33

Figure 9.12 External Script (SCRIPTS.LIS file)

1.

Jump labels that are located in the internal SCRIPTS program are
defined as EXTERNs to facilitate patching at driver run time.

2.

Labels that will be jumped to from the internal SCRIPTS program are
defined as ENTRYs to facilitate patching at driver run time.

3.

The PROC directive is used to override the default SCRIPTS array
name and replace it with Ext_Script.

4.

This is a jump to a location in the internal SCRIPTS program and
should be patched at driver init time.

5.

This is a jump to a location in the internal SCRIPTS program and
should be patched at driver init time.

1 ARCH 825A
2
3 ABSOLUTE done=0xff
4

1: 5 EXTERN Int_Start

6 EXTERN Int_dataout
7

2: 8 ENTRY Ext_Start

9 ENTRY Ext_done
10

3: 11 00000000:

PROC Ext_Script:

12 00000000:

Ext_Start:

13 00000000: 78344500 00000000

MOVE 0x45 to SCRATCHA0

14 00000008: 78354600 00000000

MOVE 0x46 to SCRATCHA1

15 00000010: 80880000 00000018

JUMP REL(Entry_point)

16 00000018: 78364700 00000000

MOVE 0x47 to SCRATCHA2

17 00000020: 78374800 00000000

MOVE 0x48 to SCRATCHA3

4: 18 00000028: 80080000 00000000

JUMP Int_Start

19
20 00000030:

Entry_point:

21 00000030: 6A360000 00000000

MOVE SFBR to SCRATCHA2

22 00000038: 785C0000 00000000

MOVE 0x00 to SCRATCHB0

23 00000040: 785D0100 00000000

MOVE 0x01 to SCRATCHB1

24 00000048: 785F0200 00000000

MOVE 0x02 to SCRATCHB3

5: 25 00000050: 80080000 00000000

JUMP Int_dataout

26
27 00000058:

Ext_done:

28 00000058: 98080000 000000FF

INT done

29
30

Advertising
This manual is related to the following products: