1
0
Fork 0

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
This commit is contained in:
Sjoerd van der Berg 2002-10-20 10:43:56 +00:00
parent 209b450062
commit 1d9ec59b07

View file

@ -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);