1
0
Fork 0

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
This commit is contained in:
Sjoerd van der Berg 2002-11-17 08:32:32 +00:00
parent cf8a6f1afc
commit f5b3b79c95

View file

@ -19,20 +19,23 @@
#ifndef __CPU_H
#define __CPU_H
#include <dosbox.h>
#include <regs.h>
#include <mem.h>
#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