mirror of
https://github.com/86Box/86Box.git
synced 2026-02-23 09:58:19 -07:00
Small checks for PC-98x1 compatibility
See above.
This commit is contained in:
@@ -210,6 +210,7 @@ int cpu_iscyrix;
|
||||
int hascache;
|
||||
int isibm486;
|
||||
int israpidcad;
|
||||
int is_pc98x1;
|
||||
int is_vpc;
|
||||
int is_am486;
|
||||
int is_am486dxl;
|
||||
|
||||
@@ -662,6 +662,7 @@ extern uint32_t old_rammask;
|
||||
extern int acycs;
|
||||
#endif
|
||||
extern int pic_pending;
|
||||
extern int is_pc98x1;
|
||||
extern int is_vpc;
|
||||
extern int soft_reset_mask;
|
||||
extern int alt_access;
|
||||
|
||||
@@ -81,6 +81,7 @@ machine_init_ex(int m)
|
||||
|
||||
machine_snd = NULL;
|
||||
|
||||
is_pc98x1 = 0;
|
||||
is_vpc = 0;
|
||||
|
||||
standalone_gameport_type = NULL;
|
||||
|
||||
@@ -956,6 +956,7 @@ static void *
|
||||
pit_pc98_init(const device_t *info)
|
||||
{
|
||||
pit_t *dev = (pit_t *) malloc(sizeof(pit_t));
|
||||
|
||||
pit_reset(dev);
|
||||
|
||||
timer_add(&dev->callback_timer, pit_timer_over, (void *) dev, 0);
|
||||
@@ -1167,7 +1168,7 @@ pit_set_clock(uint32_t clock)
|
||||
else
|
||||
cpuclock = (double) clock;
|
||||
|
||||
if (machine_pc98.init)
|
||||
if (is_pc98x1)
|
||||
PITCONSTD = (cpuclock / 2457600.0);
|
||||
else
|
||||
PITCONSTD = (cpuclock / 1193182.0);
|
||||
@@ -1225,7 +1226,7 @@ pit_set_clock(uint32_t clock)
|
||||
PITCONST = (24ULL << 32LL);
|
||||
CGACONST = (16ULL << 32LL);
|
||||
} else if (cpuclock != 14318184.0) {
|
||||
if (machine_pc98.init)
|
||||
if (is_pc98x1)
|
||||
PITCONSTD = (cpuclock / 2457600.0);
|
||||
else
|
||||
PITCONSTD = (cpuclock / 1193182.0);
|
||||
|
||||
Reference in New Issue
Block a user