Figure11.3 scripts source code–extern variables, Scripts source code–absolute declarations, Scripts source code–extern variables – Avago Technologies LSI53C1010 User Manual
Page 255
![background image](https://www.manualsdir.com/files/864554/content/doc255.png)
Using SCRIPTS for Target Operation
11-5
Figure 11.2 SCRIPTS Source Code–ABSOLUTE Declarations
EXTERNs are variables used for Memory-to-Memory Move operations.
For example,
demonstrates moving SCRIPTS from program
memory into RAM or moving data from one memory location to another.
Figure 11.3 SCRIPTS Source Code–EXTERN Variables
TABLE, shown in
, defines the table format and layout. Each
entry in the table represents a two Dword entry in a data structure. Each
entry contains a byte count and an address that points to a buffer for
Block Move instructions. The buffer must be declared in the driver code.
Note:
The declared values and sizes are only for the SCRIPTS
debugger, NVPCI. The assembler does not use these and
the information is not included in the “C” code. The buffers
must be set up in the driver program.
;ABSOLUTE DECLARATIONS
ABSOLUTE read_access_medium = 0x00
ABSOLUTE write_access_medium = 0x01
ABSOLUTE last_write_disconnect = 0x02
ABSOLUTE seek_command
= 0x03
ABSOLUTE set_up_synch_neg = 0x04
ABSOLUTE set_up_wide_neg = 0x05
ABSOLUTE non_handled_msg = 0x06
ABSOLUTE bad_extended_msg = 0x07
ABSOLUTE message_sent = 0x08
ABSOLUTE request_sense_command = 0x09
ABSOLUTE inquiry_command = 0x0a
ABSOLUTE read_capacity_command = 0x0b
ABSOLUTE start_stop_command = 0x0c
ABSOLUTE format_unit = 0x0d
ABSOLUTE send_diagnostic = 0x0e
ABSOLUTE command_aborted = 0x0f
ABSOLUTE illegal_cmd
= 0x10
ABSOLUTE got_SIGP = 0x11
ABSOLUTE done_with_copy = 0x12
ABSOLUTE got_selected
= 0x13
ABSOLUTE done_with_busy_command = 0x14
EXTERN count
EXTERN source_address
EXTERN destination_address