diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-04-29 09:15:28 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-04-29 09:15:28 +0000 |
commit | 0fb128b622024d64e4b26799cddce44e50a096cc (patch) | |
tree | 036bcde9ac216826b8da66e7bfab9d0b8805b3d9 /sys/src/cmd/aux/realemu/xec.c | |
parent | 7e0519a5e40209e0481e761240363528de45d1cd (diff) |
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
Diffstat (limited to 'sys/src/cmd/aux/realemu/xec.c')
-rw-r--r-- | sys/src/cmd/aux/realemu/xec.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); |