From f5b3b79c95996dac2d219439583d1e4e49533861 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 17 Nov 2002 08:32:32 +0000 Subject: [PATCH] New cpu decoder type. Added the new cpu timing variables for cycles. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@503 --- include/cpu.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/cpu.h b/include/cpu.h index ca649584..f6f22814 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -19,20 +19,23 @@ #ifndef __CPU_H #define __CPU_H -#include -#include -#include +#include "dosbox.h" +#include "regs.h" +#include "mem.h" /* Some common Defines */ /* A CPU Handler */ -typedef Bitu (CPU_Decoder)(Bits count); +typedef Bitu (CPU_Decoder)(void); extern CPU_Decoder * cpudecoder; -extern Bitu cpu_cycles; + +/* CPU Cycle Timing */ +extern Bits CPU_Cycles; +extern Bits CPU_CycleLeft; +extern Bits CPU_CycleMax; //CPU Stuff void SetCPU16bit(); - //Types of Flag changing instructions enum { t_ADDb=0,t_ADDw,t_ADDd, @@ -63,9 +66,6 @@ enum { t_NOTDONE, }; -enum { rep_NONE,rep_Z,rep_NZ }; - - void Interrupt(Bit8u num); //Flag Handling