comparison lwasm/lwasm.h @ 384:6ee9c67a0f8d

Add conditional for testing if a pragma is in effect An obvious addition that took someone else to notice... Thanks to Erik G <erik@6809.org> for the patch.
author William Astle <lost@l-w.ca>
date Mon, 13 Jul 2015 21:20:30 -0600
parents 80d615a6642c
children 4fd16faa4d93
comparison
equal deleted inserted replaced
383:04e11f6faead 384:6ee9c67a0f8d
97 PRAGMA_C = 1 << 16, // enable cycle counts 97 PRAGMA_C = 1 << 16, // enable cycle counts
98 PRAGMA_CD = 1 << 17, // enable detailed cycle count 98 PRAGMA_CD = 1 << 17, // enable detailed cycle count
99 PRAGMA_CT = 1 << 18, // enable cycle count running total 99 PRAGMA_CT = 1 << 18, // enable cycle count running total
100 PRAGMA_CC = 1 << 19, // clear cycle count running total 100 PRAGMA_CC = 1 << 19, // clear cycle count running total
101 PRAGMA_QRTS = 1 << 20, // enable BRA ?RTS support 101 PRAGMA_QRTS = 1 << 20, // enable BRA ?RTS support
102 PRAGMA_M80EXT = 1 << 21 // enable Macro-80C assembler extensions 102 PRAGMA_M80EXT = 1 << 21, // enable Macro-80C assembler extensions
103 PRAGMA_CLEARBIT = 1 << 31 // reserved to indicate negated pragma flag status
103 }; 104 };
104 105
105 enum 106 enum
106 { 107 {
107 section_flag_bss = 1, // BSS section 108 section_flag_bss = 1, // BSS section
417 }; 418 };
418 419
419 struct symtabe *register_symbol(asmstate_t *as, line_t *cl, char *sym, lw_expr_t value, int flags); 420 struct symtabe *register_symbol(asmstate_t *as, line_t *cl, char *sym, lw_expr_t value, int flags);
420 struct symtabe *lookup_symbol(asmstate_t *as, line_t *cl, char *sym); 421 struct symtabe *lookup_symbol(asmstate_t *as, line_t *cl, char *sym);
421 422
423 int parse_pragma_helper(char *p);
424
422 int lwasm_cycle_calc_ind(line_t *cl); 425 int lwasm_cycle_calc_ind(line_t *cl);
423 int lwasm_cycle_calc_rlist(line_t *cl); 426 int lwasm_cycle_calc_rlist(line_t *cl);
424 void lwasm_cycle_update_count(line_t *cl, int opc); 427 void lwasm_cycle_update_count(line_t *cl, int opc);
425 428
426 void lwasm_parse_testmode_comment(line_t *cl, lwasm_testflags_t *flags, lwasm_errorcode_t *err, int *len, char **buf); 429 void lwasm_parse_testmode_comment(line_t *cl, lwasm_testflags_t *flags, lwasm_errorcode_t *err, int *len, char **buf);