beautypg.com
Contents
xiii
7.2.1
EXTERN Buffers
7-8
7.2.2
RELATIVE Buffers
7.2.3
ABSOLUTE Values
7-9
7.2.4
Buffer Addresses
7.2.5
Byte Counts
7.2.6
Absolute JUMP/CALL Addresses
7-10
7.2.7
Entry Locations
7.2.8
Self-Modifying SCRIPTS Code
7-11
7.3
Running a SCRIPTS Program
7-12
Chapter 8
Writing Device Drivers with SCRIPTS
8.1
Device Driver Overview
8-1
8.2
Command Block
8-4
8.3
Power Up Example
8.4
I/O Request Process
8-5
8.5
How to Write a Device Driver with SCRIPTS
8-6
8.6
Table Indirect Addressing
8-7
8.6.1
Block Move Instructions
8-8
8.6.2
Select/Reselect Instructions
8-9
8.6.3
Defining a Table
8-10
8.7
Relative Addressing
8-11
Chapter 9
SCRIPTS Programming Topics
9.1
Scatter/Gather Operations
9-1
9.2
Loopback Mode
9-4
9.2.1
Loopback Example – Selection
9-5
9.3
Byte Recovery on Target Disconnect
9-9
9.3.1
Saving the Processor State
9-10
9.3.2
Updating the SCRIPTS Program
9-13
9.3.3
Cleaning Up
9.3.4
Example Byte Recovery Code
9.4
Synchronous Negotiation and Transfer
9-18
9.5
Interrupt Handling
9-19
9.5.1
Polling and Hardware Interrupts
9.5.2
Registers
9-20
9.5.3
Fatal vs. Nonfatal Interrupts
9-22
9.5.4
Masking
9-23