1 reset, Figure7.2 resetting the scripts processor, 2 table indirect operations – Avago Technologies LSI53C1010 User Manual
Page 169: Reset, Table indirect operations, Resetting the scripts processor
Initializing the SCRIPTS Processor
7-3
ULONG it must not exceed 16 bits in
length as this is the maximum IO
address the X86 architecture can produce
Other functions called: none
******************************************************/
void IOWrite32(ULONG IO_Addr, ULONG value)
{
asm
{
.386
mov dx, [IO_Addr]
mov eax, [value]
out dx, eax
}
}
7.1.1 Reset
shows how to reset the SCRIPTS processor, by setting, then
clearing, the Software Reset (SRST) bit in the ISTAT register. It executes
a Read-Modify-Write for each register whose default value changes at
reset.
Figure 7.2
Resetting the SCRIPTS Processor
7.1.2 Table Indirect Operations
This section of the chapter provides an overview of table indirect
operations. More information on Table Indirect operation and on creating
a table is provided in
Chapter 9, “SCRIPTS Programming Topics.”
7.1.2.1 Initializing a Table
is an example SCRIPTS table declaration. Although NASM
does not actually generate any output based on the table declaration, it
does place offsets into the SCRIPTS array based on the order of the
buffers in the table declaration. The actual byte values and byte counts
in the SCRIPTS instruction are not used at this stage because NASM
does not generate any output from the table declaration.
* sets SRST(bit 6) */
IOWrite8(ISTAT, (IORead8(ISTAT) | 0x40));/
* clears SRST(bit 6) */
IOWrite8(ISTAT, (IORead8(ISTAT) & 0xBF))/