Texas Instruments MSP50C614 Stereo System User Manual


 
Assembler
5-33
Code Development Tools
5.7 Assembler
The MSP50P614/MSP50C614 assembler is implemented as a Windows DLL
(Dynamic Linked Library).
5.7.1 Assembler DLL
The current name of the DLL file is asm6xx.dll. It can be invoked from any
Windows program, provided that the user included the file called asm6xx.lib
in the Windows project.
The syntax of the call is:
extern int FAR PASCAL ASM_MAIN (LPSTR source_file, short *warn,short *err-
pass1,struct error_struct *,LPSTR include_list);
/* .... */
short i,w,pass1_error;
LPSTR source_file;
struct error_struct{
short pass; /* pass where error was detected */
short type; /* type of error (error, warning */
short error_msg; /* error message number */
short file_number; /* file number in object file table */
long line_number; /* line number in file where error occurred */
char info[MAXIDENTIFIER+1]; /* character string containing some */
/* information on the error */
};
struct error_struct error_list[MAX_ERRORS];
/* ..... */
i=ASM_MAIN(source_file,&w,&pass1_error,error_list,include_list);
Where:
source file is the assembly source file name.
w
pass1_error is the number of errors returned in pass 1 of the assembler.
error_list is a structure containing information about the errors detected by the assembler.
include_list is the list of directories to search first for include files (separated by semicolons).
i is the total number of errors returned by the assembler.