diff options
author | Keith Packard <keithp@keithp.com> | 2002-02-19 00:18:05 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2002-02-19 00:18:05 +0000 |
commit | 98f8d7af3cb7a10cc268a8bdd3039539b1bf90f2 (patch) | |
tree | 04e25935255f47dec6ad2deeb4440ea4f9c1fa69 | |
parent | 6d8cedf68c7803330bc920cf7506727c4ad6108c (diff) |
kdrive/vesa: apply vm86 patch from Juliuszdri-20020222-mergebefore-mesa-4_0-import
-rw-r--r-- | hw/kdrive/vesa/vm86.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/hw/kdrive/vesa/vm86.c b/hw/kdrive/vesa/vm86.c index 4bb90daf2..b6f604873 100644 --- a/hw/kdrive/vesa/vm86.c +++ b/hw/kdrive/vesa/vm86.c @@ -431,13 +431,12 @@ vm86_emulate(Vm86InfoPtr vi) if(pref_rep) { if(pref_66) { regs->ecx--; - if(regs->ecx != 0) { + if(regs->ecx != 0) + goto again; + } else { + SET_16(regs->ecx, regs->ecx - 1); + if(regs->ecx & 0xFFFF != 0) goto again; - } else { - SET_16(regs->ecx, regs->ecx - 1); - if(regs->ecx & 0xFFFF != 0) - goto again; - } } } INC_IP(1); |