From 983e672a40437a3c5dac0c6c4b929eef57e5f017 Mon Sep 17 00:00:00 2001 From: forsyth Date: Tue, 27 Apr 2010 13:16:18 +0100 Subject: 20100427-1316 --- utils/qc/swt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils/qc/swt.c') diff --git a/utils/qc/swt.c b/utils/qc/swt.c index 0170bad1..f0edacc8 100644 --- a/utils/qc/swt.c +++ b/utils/qc/swt.c @@ -1,6 +1,5 @@ #include "gc.h" -int hasdoubled; static int doubleflag; void @@ -370,12 +369,16 @@ zwrite(Biobuf *b, Prog *p, int sf, int st) bf[0] = p->as; bf[1] = p->as>>8; bf[2] = p->reg; + if(p->from3.type != D_NONE) + bf[2] |= 0x40; l = p->lineno; bf[3] = l; bf[4] = l>>8; bf[5] = l>>16; bf[6] = l>>24; bp = zaddr(bf+7, &p->from, sf); + if(bf[2] & 0x40) + bp = zaddr(bp, &p->from3, 0); bp = zaddr(bp, &p->to, st); Bwrite(b, bf, bp-bf); } -- cgit v1.2.3