changeset 165:c45f23ae79e6

Fixed opcodes for MULD
author lost@l-w.ca
date Sun, 28 Aug 2011 17:03:43 -0600
parents da891a357d97
children 324f28905144
files lwasm/insn_indexed.c lwasm/instab.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/insn_indexed.c	Sun Aug 28 16:49:50 2011 -0600
+++ b/lwasm/insn_indexed.c	Sun Aug 28 17:03:43 2011 -0600
@@ -54,7 +54,7 @@
 		{"f,x",	0x8a},		{"f,y",	0xaa},		{"f,u", 0xca},		{"f,s", 0xea},
 		{"d,x", 0x8b},		{"d,y", 0xab},		{"d,u", 0xcb},		{"d,s", 0xed},
 		{"w,x", 0x8e},		{"w,y", 0xae},		{"w,u", 0xce},		{"w,s", 0xee},
-		{",w", 0xAf},							{",w++", 0xcf},		{",--w", 0xef},
+		{",w", 0x8f},							{",w++", 0xcf},		{",--w", 0xef},
 		
 		{"[,x]", 0x94},		{"[,y]", 0xb4},		{"[,u]", 0xd4},		{"[,s]", 0xf4},
 		{"[,x++]", 0x91},	{"[,y++]", 0xb1},	{"[,u++]", 0xd1},	{"[,s++]", 0xf1},
@@ -65,7 +65,7 @@
 		{"[f,x]", 0x9a},	{"[f,y]", 0xba},	{"[f,u]", 0xda},	{"[f,s]", 0xfa},
 		{"[d,x]", 0x9b},	{"[d,y]", 0xbb},	{"[d,u]", 0xdb},	{"[d,s]", 0xfd},
 		{"[w,x]", 0x9e},	{"[w,y]", 0xbe},	{"[w,u]", 0xde},	{"[w,s]", 0xfe},
-		{"[,w]", 0xB0},							{"[,w++]", 0xd0},	{"[,--w]", 0xf0},
+		{"[,w]", 0x90},							{"[,w++]", 0xd0},	{"[,--w]", 0xf0},
 		
 		{ "", -1 }
 	};
--- a/lwasm/instab.c	Sun Aug 28 16:49:50 2011 -0600
+++ b/lwasm/instab.c	Sun Aug 28 17:03:43 2011 -0600
@@ -483,7 +483,7 @@
 	{ "lsrw",		{	0x1054,	-1,		-1,		-1	},	insn_parse_inh,			insn_resolve_inh,				insn_emit_inh,				lwasm_insn_is6309},
 
 	{ "mul",		{	0x3d,	-1,		-1,		-1	},	insn_parse_inh,			insn_resolve_inh,				insn_emit_inh,				lwasm_insn_normal},
-	{ "muld",		{	0x118f,	0x119f,	0x11af,	0x11bf},insn_parse_gen16,		insn_resolve_gen16,				insn_emit_gen16,			lwasm_insn_is6309},
+	{ "muld",		{	0x119f,	0x11af,	0x11bf,	0x118f},insn_parse_gen16,		insn_resolve_gen16,				insn_emit_gen16,			lwasm_insn_is6309},
 	
 	{ "neg",		{	0x00,	0x60,	0x70,	-1	},	insn_parse_gen0,		insn_resolve_gen0,				insn_emit_gen0,				lwasm_insn_normal},
 	{ "nega",		{	0x40,	-1,		-1,		-1	},	insn_parse_inh,			insn_resolve_inh,				insn_emit_inh,				lwasm_insn_normal},