From 1d9ec59b071d87df5b36f7319944408998039023 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 20 Oct 2002 10:43:56 +0000 Subject: [PATCH] Changed the counter for the cpu decoder to a signed integer. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@385 --- src/cpu/slow_16.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cpu/slow_16.cpp b/src/cpu/slow_16.cpp index c8d9a2d1..1f4a613d 100644 --- a/src/cpu/slow_16.cpp +++ b/src/cpu/slow_16.cpp @@ -61,20 +61,20 @@ extern Bitu cycle_count; #include "core_16/support.h" static Bitu CPU_Real_16_Slow_Decode_Special(Bitu count); -static Bitu CPU_Real_16_Slow_Decode(Bitu count) { + +static Bitu CPU_Real_16_Slow_Decode(Bits count) { #include "core_16/start.h" - while (count) { + do { #if C_DEBUG cycle_count++; #endif - count--; #include "core_16/main.h" - } + } while (--count>0); #include "core_16/stop.h" return CBRET_NONE; } -static Bitu CPU_Real_16_Slow_Decode_Special(Bitu count) { +static Bitu CPU_Real_16_Slow_Decode_Special(Bits count) { while (count>0) { if (flags.tf) { Interrupt(3);