Mercurial > hg-old > index.cgi
diff lwasm/instab.c @ 353:faa97115952e
Added SECTION/ENDSECTION
author | lost@starbug |
---|---|
date | Tue, 30 Mar 2010 21:48:49 -0600 |
parents | f5b77989f675 |
children | 60568b123281 |
line wrap: on
line diff
--- a/lwasm/instab.c Tue Mar 30 20:56:54 2010 -0600 +++ b/lwasm/instab.c Tue Mar 30 21:48:49 2010 -0600 @@ -169,6 +169,13 @@ #define pseudo_resolve_starpragma NULL #define pseudo_emit_starpragma NULL +extern PARSEFUNC(pseudo_parse_section); +#define pseudo_resolve_section NULL +#define pseudo_emit_section NULL + +extern PARSEFUNC(pseudo_parse_endsection); +#define pseudo_resolve_endsection NULL +#define pseudo_emit_endsection NULL instab_t instab[] = { @@ -487,7 +494,7 @@ { "setdp", { -1, -1, -1, -1}, pseudo_parse_setdp, pseudo_resolve_setdp, pseudo_emit_setdp, lwasm_insn_normal}, { "set", { -1, -1, -1, -1}, pseudo_parse_set, pseudo_resolve_set, pseudo_emit_set, lwasm_insn_setsym}, -/* + { "section", { -1, -1, -1, -1}, pseudo_parse_section, pseudo_resolve_section, pseudo_emit_section, lwasm_insn_normal}, { "sect", { -1, -1, -1, -1}, pseudo_parse_section, pseudo_resolve_section, pseudo_emit_section, lwasm_insn_normal}, @@ -495,7 +502,7 @@ { "endsect", { -1, -1, -1, -1}, pseudo_parse_endsection,pseudo_resolve_endsection, pseudo_emit_endsection, lwasm_insn_normal}, { "endsection", { -1, -1, -1, -1}, pseudo_parse_endsection,pseudo_resolve_endsection, pseudo_emit_endsection, lwasm_insn_normal}, -*/ + { "pragma", { -1, -1, -1, -1}, pseudo_parse_pragma, pseudo_resolve_pragma, pseudo_emit_pragma, lwasm_insn_normal}, { "*pragma", { -1, -1, -1, -1}, pseudo_parse_starpragma,pseudo_resolve_starpragma, pseudo_emit_starpragma, lwasm_insn_normal},