summaryrefslogtreecommitdiff
path: root/utils/5l
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2007-07-20 09:05:46 +0000
committerCharles.Forsyth <devnull@localhost>2007-07-20 09:05:46 +0000
commita92cbc54f1d6686990c66d7757caecbd9d6bce9a (patch)
treef8ffa2149e17f42d7c6372f61192c16f0179dca0 /utils/5l
parenta6011949be081a8fe1bec0713ce60c36beb3a351 (diff)
20070720-1005
Diffstat (limited to 'utils/5l')
-rw-r--r--utils/5l/asm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/5l/asm.c b/utils/5l/asm.c
index fbb1397b..2893b293 100644
--- a/utils/5l/asm.c
+++ b/utils/5l/asm.c
@@ -760,7 +760,9 @@ if(debug['G']) print("%ulx: %s: arm %d %d %d %d\n", (ulong)(p->pc), p->from.sym-
r = p->reg;
if(p->to.type == D_NONE)
rt = 0;
- if(r == NREG)
+ if(p->as == AMOVW)
+ r = 0;
+ else if(r == NREG)
r = rt;
o1 |= (r<<16) | (rt<<12);
break;