1 scripts array, Scripts array – Avago Technologies LSI53C1010 User Manual
Page 141
NASM Output File Examples
5-3
5.2.1 SCRIPTS Array
The SCRIPTS array is an array of unsigned long values that is the actual
contiguous machine code (opcodes) produced by the assembler. Each
line of the array contains one instruction and one or two address fields,
depending on the instruction. If a PROC directive is used in the source
program, there may be more than one SCRIPTS array. For each PROC,
a new array is declared with the name specified with the PROC directive.
For example, if the above code started with:
PROC SCSI_READ:
Start:
SELECT ATN Select_ID, REL(Interrupt)
.
.
.
Then the SCRIPTS array starts:
typedef unsigned long ULONG;
ULONG SCSI_READ[] = {
0x45020000L, 0x00000060L,
The default array name without the PROC statement is SCRIPT. The
SCRIPTS array is not affected by NASM command line options.
Example of SCRIPTS array:
typedef unsigned long ULONG;
ULONG SCRIPT[] = {
0x45020000L,0x00000060L,
0x9E030000L,0x00000011L,
0x0E000001L,0x00000000L,
0x0A000006L,0x00000001L,
0x18000000L,0x00000000L,
0x18000000L,0x00000008L,
0x18000000L,0x00000010L,
0x0B000001L,0x00000000L,
0x0F000001L,0x00000000L,
0x7C027F00L,0x00000000L,
0x60000040L,0x00000000L,
0x48000000L,0x00000000L,
0x80080000L,0x00000070L,
0x98080000L,0x000000A5L,
0x98080000L,0x00000001L