1
0
Fork 0

New cpu core for some testing.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@859
This commit is contained in:
Sjoerd van der Berg 2003-04-01 22:16:19 +00:00
parent 1d510b4a24
commit 302cf8e94a
11 changed files with 2165 additions and 1 deletions

View file

@ -23,7 +23,34 @@
#include "keyboard.h"
#include "setup.h"
//Regs regs;
#pragma pack(1)
struct Descriptor {
Bit32u limit_0_15 :16;
Bit32u base_0_15 :16;
Bit32u base_16_23 :8;
Bit32u type :5;
Bit32u dpl :2;
Bit32u p :1;
Bit32u limit_16_19 :4;
Bit32u avl :1;
Bit32u r :1;
Bit32u d :1;
Bit32u g :1;
Bit32u base_24_31 :8;
};
#pragma pack()
struct CPUBlock {
struct {
PhysPt phys_base;
Bit32u base;
Bit16u limit;
} gdt,idt;
};
Flag_Info flags;
@ -136,9 +163,13 @@ void Interrupt(Bit8u num) {
void CPU_Real_16_Slow_Start(void);
void CPU_Core_Full_Start(void);
void SetCPU16bit()
{
CPU_Real_16_Slow_Start();
// CPU_Core_Full_Start();
}