diff lwasm/instab.c @ 228:560843a951f7

Added compatibility alternatives to TFM
author lost
date Fri, 12 Jun 2009 00:19:03 +0000
parents 058f18119025
children 0df2a39a268c
line wrap: on
line diff
--- a/lwasm/instab.c	Fri Jun 12 00:06:24 2009 +0000
+++ b/lwasm/instab.c	Fri Jun 12 00:19:03 2009 +0000
@@ -39,6 +39,7 @@
 extern OPFUNC(insn_bitbit);
 extern OPFUNC(insn_logicmem);
 extern OPFUNC(insn_tfm);
+extern OPFUNC(insn_tfmrtor);
 extern OPFUNC(insn_indexed);
 
 extern OPFUNC(pseudo_org);
@@ -314,6 +315,19 @@
 	// note: 		r+,r+	r-,r-	r+,r	r,r+
 	{ "tfm",	{	0x1138,	0x1139,	0x113a,	0x113b	},	insn_tfm },
 
+	// compatibility opcodes for tfm in other assemblers
+	{ "copy",	{	0x1138, -1, -1, -1},	insn_tfmrtor },
+	{ "tfrp",	{	0x1138, -1, -1, -1},	insn_tfmrtor },
+	
+	{ "copy-",	{	0x1139, -1, -1, -1},	insn_tfmrtor },
+	{ "tfrm",	{	0x1139, -1, -1, -1},	insn_tfmrtor },
+	
+	{ "imp",	{	0x113a, -1, -1, -1},	insn_tfmrtor },
+	{ "tfrs",	{	0x113a, -1, -1, -1},	insn_tfmrtor },
+	
+	{ "exp",	{	0x113b, -1, -1, -1},	insn_tfmrtor },
+	{ "tfrr",	{	0x113b, -1, -1, -1},	insn_tfmrtor },
+
 	{ "tfr",	{	0x1f,	-0x1,	-0x1,	-0x1	},	insn_rtor },
 	{ "tim",	{	0x0b,	0x6b,	0x7b,	-0x1	},	insn_logicmem },
 	{ "tst",	{	0x0d,	0x6d,	0x7d,	-0x1	},	insn_gen0 },