diff options
| author | Charles.Forsyth <devnull@localhost> | 2007-07-20 09:05:46 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2007-07-20 09:05:46 +0000 |
| commit | a92cbc54f1d6686990c66d7757caecbd9d6bce9a (patch) | |
| tree | f8ffa2149e17f42d7c6372f61192c16f0179dca0 | |
| parent | a6011949be081a8fe1bec0713ce60c36beb3a351 (diff) | |
20070720-1005
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | utils/5l/asm.c | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,5 @@ +20070720 + utils/5l/asm.c: ensure SBZ field in MOV is regarded as MBZ (ie, force to zero) 20070714 add Sys->readn, update sys-read(2) copy two repairs from emu/port/inferno.c to os/port/inferno.c 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; |
