Mercurial > hg > index.cgi
changeset 128:3a5f718b24c1
Fixed swapped register lists for 6309/6809 register-to-register instructions
author | lost@l-w.ca |
---|---|
date | Thu, 11 Aug 2011 22:04:09 -0600 |
parents | d92b9c968731 |
children | 5706712f8a20 |
files | lwasm/insn_rtor.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lwasm/insn_rtor.c Thu Aug 11 22:03:34 2011 -0600 +++ b/lwasm/insn_rtor.c Thu Aug 11 22:04:09 2011 -0600 @@ -34,7 +34,7 @@ // D,X,Y,U,S,PC,W,V // A,B,CC,DP,0,0,E,F - r0 = lwasm_lookupreg2((as -> target == TARGET_6309) ? regs9 : regs, p); + r0 = lwasm_lookupreg2((as -> target == TARGET_6309) ? regs : regs9, p); if (r0 < 0 || *(*p)++ != ',') { lwasm_register_error(as, l, "Bad operand"); @@ -42,7 +42,7 @@ } else { - r1 = lwasm_lookupreg2((as -> target = TARGET_6309) ? regs9 : regs, p); + r1 = lwasm_lookupreg2((as -> target == TARGET_6309) ? regs : regs9, p); if (r1 < 0) { lwasm_register_error(as, l, "Bad operand");