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:
parent
cf8a6f1afc
commit
f5b3b79c95
1 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue