comparison src/lwasm.h @ 58:b1d81800bc91

Added symbol listing to list file; various fixes
author lost
date Mon, 05 Jan 2009 00:20:45 +0000
parents 035b95a3690f
children d85ba47b1e8f
comparison
equal deleted inserted replaced
57:035b95a3690f 58:b1d81800bc91
22 22
23 23
24 #ifndef __lwasm_h_seen__ 24 #ifndef __lwasm_h_seen__
25 #define __lwasm_h_seen__ 25 #define __lwasm_h_seen__
26 26
27 #include <stdio.h>
27 #include "expr.h" 28 #include "expr.h"
28 29
29 #define OUTPUT_DECB 0 // DECB multirecord format 30 #define OUTPUT_DECB 0 // DECB multirecord format
30 #define OUTPUT_RAW 1 // raw sequence of bytes 31 #define OUTPUT_RAW 1 // raw sequence of bytes
31 #define OUTPUT_OBJ 2 // proprietary object file format 32 #define OUTPUT_OBJ 2 // proprietary object file format
157 #endif 158 #endif
158 159
159 __lwasm_E__ int lwasm_register_symbol(asmstate_t *as, lwasm_line_t *l, char *sym, int val); 160 __lwasm_E__ int lwasm_register_symbol(asmstate_t *as, lwasm_line_t *l, char *sym, int val);
160 __lwasm_E__ lwasm_symbol_ent_t *lwasm_find_symbol(asmstate_t *as, char *sym, int scontext); 161 __lwasm_E__ lwasm_symbol_ent_t *lwasm_find_symbol(asmstate_t *as, char *sym, int scontext);
161 __lwasm_E__ int lwasm_set_symbol(asmstate_t *as, char *sym, int scontext, int val); 162 __lwasm_E__ int lwasm_set_symbol(asmstate_t *as, char *sym, int scontext, int val);
162 163 __lwasm_E__ void lwasm_list_symbols(asmstate_t *as, FILE *f);
163 #undef __lwasm_E__ 164 #undef __lwasm_E__
164 165
165 166
166 167
167 #endif //__lwasm_h_seen__ 168 #endif //__lwasm_h_seen__