comparison lwasm/instab.c @ 132:4cf44ff89b08

Added DTS and DTB pseudo ops; initial attempt to allow ifdef SYM1|SYM2
author lost@l-w.ca
date Thu, 11 Aug 2011 23:50:16 -0600
parents 7b0716264251
children b62f5389b859
comparison
equal deleted inserted replaced
131:f2f3a4b0a25e 132:4cf44ff89b08
113 #define pseudo_emit_endm NULL 113 #define pseudo_emit_endm NULL
114 114
115 #define pseudo_parse_noop NULL 115 #define pseudo_parse_noop NULL
116 #define pseudo_resolve_noop NULL 116 #define pseudo_resolve_noop NULL
117 #define pseudo_emit_noop NULL 117 #define pseudo_emit_noop NULL
118
119 extern PARSEFUNC(pseudo_parse_dts);
120 #define pseudo_resolve_dts NULL
121 extern EMITFUNC(pseudo_emit_dts);
122
123 extern PARSEFUNC(pseudo_parse_dtb);
124 #define pseudo_resolve_dtb NULL
125 extern EMITFUNC(pseudo_emit_dtb);
118 126
119 extern PARSEFUNC(pseudo_parse_end); 127 extern PARSEFUNC(pseudo_parse_end);
120 #define pseudo_resolve_end NULL 128 #define pseudo_resolve_end NULL
121 extern EMITFUNC(pseudo_emit_end); 129 extern EMITFUNC(pseudo_emit_end);
122 130
686 { ".rs", { -1, -1, -1, -1}, pseudo_parse_rmb, pseudo_resolve_rmb, pseudo_emit_rmb, lwasm_insn_struct}, 694 { ".rs", { -1, -1, -1, -1}, pseudo_parse_rmb, pseudo_resolve_rmb, pseudo_emit_rmb, lwasm_insn_struct},
687 695
688 // for compatibility 696 // for compatibility
689 { ".end", { -1, -1, -1, -1 }, pseudo_parse_end, pseudo_resolve_end, pseudo_emit_end, lwasm_insn_normal}, 697 { ".end", { -1, -1, -1, -1 }, pseudo_parse_end, pseudo_resolve_end, pseudo_emit_end, lwasm_insn_normal},
690 698
699 // date and time stamps
700 { "dts", { -1, -1, -1, -1 }, pseudo_parse_dts, pseudo_resolve_dts, pseudo_emit_dts, lwasm_insn_normal},
701 { "dtb", { -1, -1, -1, -1 }, pseudo_parse_dtb, pseudo_resolve_dtb, pseudo_emit_dtb, lwasm_insn_normal},
702
691 // extra ops that are ignored because they are generally only for 703 // extra ops that are ignored because they are generally only for
692 // pretty printing the listing 704 // pretty printing the listing
693 { "nam", { -1, -1, -1, -1 }, pseudo_parse_noop, pseudo_resolve_noop, pseudo_emit_noop, lwasm_insn_normal}, 705 { "nam", { -1, -1, -1, -1 }, pseudo_parse_noop, pseudo_resolve_noop, pseudo_emit_noop, lwasm_insn_normal},
694 { "pag", { -1, -1, -1, -1 }, pseudo_parse_noop, pseudo_resolve_noop, pseudo_emit_noop, lwasm_insn_normal}, 706 { "pag", { -1, -1, -1, -1 }, pseudo_parse_noop, pseudo_resolve_noop, pseudo_emit_noop, lwasm_insn_normal},
695 { "ttl", { -1, -1, -1, -1 }, pseudo_parse_noop, pseudo_resolve_noop, pseudo_emit_noop, lwasm_insn_normal}, 707 { "ttl", { -1, -1, -1, -1 }, pseudo_parse_noop, pseudo_resolve_noop, pseudo_emit_noop, lwasm_insn_normal},