24 lines
644 B
C
24 lines
644 B
C
|
/* ===========================================================================
|
||
|
* uz80as, an assembler for the Zilog Z80 and several other microprocessors.
|
||
|
*
|
||
|
* Symbol table for labels.
|
||
|
* ===========================================================================
|
||
|
*/
|
||
|
|
||
|
#ifndef SYM_H
|
||
|
#define SYM_H
|
||
|
|
||
|
/* Max symbol length + '\0'. */
|
||
|
#define SYMLEN 32
|
||
|
|
||
|
struct sym {
|
||
|
char name[SYMLEN]; /* null terminated string */
|
||
|
int val; /* value of symbol */
|
||
|
unsigned short next; /* index into symlist; 0 is no next */
|
||
|
unsigned char isequ; /* if val comes from EQU */
|
||
|
};
|
||
|
|
||
|
struct sym *lookup(const char *p, const char *q, int insert, int pc);
|
||
|
|
||
|
#endif
|