From 0fb128b622024d64e4b26799cddce44e50a096cc Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 29 Apr 2011 09:15:28 +0000 Subject: proto: change mkfs to use libdisk to process proto files, inst: use -U option in mkfs so uid is set and automatic reboot, realemu: cleanup --- sys/src/cmd/aux/realemu/xec.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/src/cmd/aux/realemu/xec.c') diff --git a/sys/src/cmd/aux/realemu/xec.c b/sys/src/cmd/aux/realemu/xec.c index 2466d4e4a..e4968c52e 100644 --- a/sys/src/cmd/aux/realemu/xec.c +++ b/sys/src/cmd/aux/realemu/xec.c @@ -1063,11 +1063,11 @@ opstos(Cpu *cpu, Inst *i) } static int -repcond(Cpu *cpu, int rep) +repcond(ulong *f, int rep) { if(rep == OREPNE) - return (cpu->reg[RFL] & ZF) == 0; - return !rep || (cpu->reg[RFL] & ZF) != 0; + return (*f & ZF) == 0; + return !rep || (*f & ZF) != 0; } static void @@ -1098,7 +1098,7 @@ opscas(Cpu *cpu, Inst *i) d->off += n; d->off &= m; c--; - if(repcond(cpu, i->rep)) + if(repcond(f, i->rep)) break; } aw(areg(cpu, i->alen, RDI), d->off); @@ -1135,7 +1135,7 @@ opcmps(Cpu *cpu, Inst *i) d->off += n; d->off &= m; c--; - if(repcond(cpu, i->rep)) + if(repcond(f, i->rep)) break; } aw(areg(cpu, i->alen, RDI), d->off); -- cgit v1.2.3