diff lwasm/instab.c @ 218:b0c9df865b25

Add FDBS pseudo op. Add FDBS pseudo op which is just like FDB but it swaps the bytes of the operands. It is undocumented intentionally.
author William Astle <lost@l-w.ca>
date Sun, 10 Jun 2012 14:55:27 -0600
parents 5330ba70836a
children 507f442dc71e
line wrap: on
line diff
--- a/lwasm/instab.c	Sun Jun 10 14:14:43 2012 -0600
+++ b/lwasm/instab.c	Sun Jun 10 14:55:27 2012 -0600
@@ -136,6 +136,10 @@
 #define pseudo_resolve_fdb NULL
 extern EMITFUNC(pseudo_emit_fdb);
 
+extern PARSEFUNC(pseudo_parse_fdbs);
+#define pseudo_resolve_fdbs NULL
+extern EMITFUNC(pseudo_emit_fdbs);
+
 extern PARSEFUNC(pseudo_parse_fqb);
 #define pseudo_resolve_fqb NULL
 extern EMITFUNC(pseudo_emit_fqb);
@@ -610,6 +614,7 @@
 
 	{ "fcb",		{	-1, 	-1, 	-1, 	-1 },	pseudo_parse_fcb,		pseudo_resolve_fcb,				pseudo_emit_fcb,			lwasm_insn_normal},
 	{ "fdb",		{	-1, 	-1, 	-1, 	-1 },	pseudo_parse_fdb,		pseudo_resolve_fdb,				pseudo_emit_fdb,			lwasm_insn_normal},
+	{ "fdbs",		{	-1, 	-1, 	-1, 	-1 },	pseudo_parse_fdbs,		pseudo_resolve_fdbs,			pseudo_emit_fdbs,			lwasm_insn_normal},
 	{ "fqb",		{	-1, 	-1, 	-1, 	-1 },	pseudo_parse_fqb,		pseudo_resolve_fqb,				pseudo_emit_fqb,			lwasm_insn_normal},
 	{ "end", 		{	-1, 	-1, 	-1, 	-1 },	pseudo_parse_end,		pseudo_resolve_end,				pseudo_emit_end,			lwasm_insn_normal},