Removed more ROM set checks and fixed ET4000AX ROM paths.
This commit is contained in:
@@ -46,12 +46,11 @@ enum
|
||||
INTEL_430LX,
|
||||
INTEL_430NX,
|
||||
INTEL_430FX,
|
||||
INTEL_430FX_PB640,
|
||||
INTEL_430HX,
|
||||
#if defined(DEV_BRANCH) && defined(USE_I686)
|
||||
INTEL_430VX,
|
||||
INTEL_440FX
|
||||
#else
|
||||
INTEL_430VX
|
||||
#if defined(DEV_BRANCH) && defined(USE_I686)
|
||||
,INTEL_440FX
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -108,7 +107,7 @@ i4x0_write(int func, int addr, uint8_t val, void *priv)
|
||||
|
||||
case 0x04: /*Command register*/
|
||||
if (dev->type >= INTEL_430FX) {
|
||||
if (romset == ROM_PB640)
|
||||
if (dev->type == INTEL_430FX_PB640)
|
||||
val &= 0x06;
|
||||
else
|
||||
val &= 0x02;
|
||||
@@ -132,7 +131,7 @@ i4x0_write(int func, int addr, uint8_t val, void *priv)
|
||||
val |= 0x02;
|
||||
} else {
|
||||
val = 0x02;
|
||||
if (romset == ROM_PB640)
|
||||
if (dev->type == INTEL_430FX_PB640)
|
||||
val |= 0x20;
|
||||
}
|
||||
break;
|
||||
@@ -245,8 +244,9 @@ static void
|
||||
i4x0->regs[0x66] = i4x0->regs[0x67] = 0x02;
|
||||
break;
|
||||
case INTEL_430FX:
|
||||
case INTEL_430FX_PB640:
|
||||
i4x0->regs[0x02] = 0x2d; i4x0->regs[0x03] = 0x12; /*SB82437FX-66*/
|
||||
if (romset == ROM_PB640)
|
||||
if (i4x0->type == INTEL_430FX_PB640)
|
||||
i4x0->regs[0x08] = 0x02; /*???? stepping*/
|
||||
else
|
||||
i4x0->regs[0x08] = 0x00; /*A0 stepping*/
|
||||
@@ -297,7 +297,7 @@ static void
|
||||
if (i4x0->type == INTEL_440FX)
|
||||
i4x0->regs[0x06] = 0x80;
|
||||
#endif
|
||||
if ((i4x0->type == INTEL_430FX) && (romset != ROM_PB640))
|
||||
if (i4x0->type == INTEL_430FX)
|
||||
i4x0->regs[0x07] = 0x82;
|
||||
#if defined(DEV_BRANCH) && defined(USE_I686)
|
||||
else if (i4x0->type != INTEL_440FX)
|
||||
@@ -366,6 +366,21 @@ const device_t i430fx_device =
|
||||
};
|
||||
|
||||
|
||||
const device_t i430fx_pb640_device =
|
||||
{
|
||||
"Intel SB82437FX-66 (PB640)",
|
||||
DEVICE_PCI,
|
||||
INTEL_430FX_PB640,
|
||||
i4x0_init,
|
||||
i4x0_close,
|
||||
i4x0_reset,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
const device_t i430hx_device =
|
||||
{
|
||||
"Intel 82439HX",
|
||||
@@ -671,8 +686,9 @@ machine_at_pb640_init(const machine_t *model)
|
||||
pci_register_slot(0x13, PCI_CARD_NORMAL, 2, 1, 3, 4);
|
||||
pci_register_slot(0x0B, PCI_CARD_NORMAL, 3, 2, 1, 4);
|
||||
pci_register_slot(0x07, PCI_CARD_SPECIAL, 0, 0, 0, 0);
|
||||
device_add(&i430fx_device);
|
||||
device_add(&i430fx_pb640_device);
|
||||
device_add(&piix_pb640_device);
|
||||
ide_enable_pio_override();
|
||||
pc87306_init();
|
||||
|
||||
device_add(&intel_flash_bxt_ami_device);
|
||||
|
||||
@@ -22,13 +22,14 @@ static int laserxt_emspage[4];
|
||||
static int laserxt_emscontrol[4];
|
||||
static mem_mapping_t laserxt_ems_mapping[4];
|
||||
static int laserxt_ems_baseaddr_index = 0;
|
||||
static int laserxt_is_lxt3 = 0;
|
||||
|
||||
|
||||
static uint32_t get_laserxt_ems_addr(uint32_t addr)
|
||||
{
|
||||
if(laserxt_emspage[(addr >> 14) & 3] & 0x80)
|
||||
{
|
||||
addr = (romset == ROM_LTXT ? 0x70000 + (((mem_size + 64) & 255) << 10) : 0x30000 + (((mem_size + 320) & 511) << 10)) + ((laserxt_emspage[(addr >> 14) & 3] & 0x0F) << 14) + ((laserxt_emspage[(addr >> 14) & 3] & 0x40) << 12) + (addr & 0x3FFF);
|
||||
addr = (!laserxt_is_lxt3 ? 0x70000 + (((mem_size + 64) & 255) << 10) : 0x30000 + (((mem_size + 320) & 511) << 10)) + ((laserxt_emspage[(addr >> 14) & 3] & 0x0F) << 14) + ((laserxt_emspage[(addr >> 14) & 3] & 0x40) << 12) + (addr & 0x3FFF);
|
||||
}
|
||||
|
||||
return addr;
|
||||
@@ -114,7 +115,7 @@ static uint8_t mem_read_laserxtems(uint32_t addr, void *priv)
|
||||
}
|
||||
|
||||
|
||||
static void laserxt_init(void)
|
||||
static void laserxt_init(is_lxt3)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -124,7 +125,7 @@ static void laserxt_init(void)
|
||||
io_sethandler(0x4208, 0x0002, laserxt_read, NULL, NULL, laserxt_write, NULL, NULL, NULL);
|
||||
io_sethandler(0x8208, 0x0002, laserxt_read, NULL, NULL, laserxt_write, NULL, NULL, NULL);
|
||||
io_sethandler(0xc208, 0x0002, laserxt_read, NULL, NULL, laserxt_write, NULL, NULL, NULL);
|
||||
mem_mapping_set_addr(&ram_low_mapping, 0, romset == ROM_LTXT ? 0x70000 + (((mem_size + 64) & 255) << 10) : 0x30000 + (((mem_size + 320) & 511) << 10));
|
||||
mem_mapping_set_addr(&ram_low_mapping, 0, !is_lxt3 ? 0x70000 + (((mem_size + 64) & 255) << 10) : 0x30000 + (((mem_size + 320) & 511) << 10));
|
||||
}
|
||||
|
||||
for (i = 0; i < 4; i++)
|
||||
@@ -135,6 +136,7 @@ static void laserxt_init(void)
|
||||
mem_mapping_disable(&laserxt_ems_mapping[i]);
|
||||
}
|
||||
mem_set_mem_state(0x0c0000, 0x40000, MEM_READ_EXTERNAL | MEM_WRITE_EXTERNAL);
|
||||
laserxt_is_lxt3 = is_lxt3;
|
||||
}
|
||||
|
||||
|
||||
@@ -143,7 +145,7 @@ machine_xt_laserxt_init(const machine_t *model)
|
||||
{
|
||||
machine_xt_init(model);
|
||||
|
||||
laserxt_init();
|
||||
laserxt_init(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -160,5 +162,5 @@ machine_xt_lxt3_init(const machine_t *model)
|
||||
if (joystick_type != 7)
|
||||
device_add(&gameport_device);
|
||||
|
||||
laserxt_init();
|
||||
laserxt_init(1);
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
* NOTE: Still need to figure out a way to load/save ConfigSys and
|
||||
* HardRAM stuff. Needs to be linked in to the NVR code.
|
||||
*
|
||||
* Version: @(#)m_xt_t1000.c 1.0.10 2018/09/15
|
||||
* Version: @(#)m_xt_t1000.c 1.0.11 2018/09/15
|
||||
*
|
||||
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -172,6 +172,7 @@ typedef struct {
|
||||
fdc_t *fdc;
|
||||
|
||||
nvr_t nvr;
|
||||
int is_t1200;
|
||||
} t1000_t;
|
||||
|
||||
|
||||
@@ -648,7 +649,7 @@ write_ctl(uint16_t addr, uint8_t val, void *priv)
|
||||
case 4: /* Video control */
|
||||
if (sys->sys_ctl[3] == 0x5A) {
|
||||
t1000_video_options_set((val & 0x20) ? 1 : 0);
|
||||
t1000_display_set((val & 0x40) ? 0 : 1);
|
||||
t1000_display_set((val & 0x40) ? 0 : 1);
|
||||
if (sys->is_t1200)
|
||||
t1200_turbo_set((val & 0x80) ? 1 : 0);
|
||||
}
|
||||
@@ -656,7 +657,7 @@ write_ctl(uint16_t addr, uint8_t val, void *priv)
|
||||
|
||||
/* It looks as if the T1200, like the T3100, can disable
|
||||
* its builtin video chipset if it detects the presence of
|
||||
* another video card. */
|
||||
* another video card. */
|
||||
case 6: if (sys->is_t1200)
|
||||
{
|
||||
t1000_video_enable(val & 0x01 ? 0 : 1);
|
||||
@@ -853,6 +854,7 @@ machine_xt_t1000_init(const machine_t *model)
|
||||
FILE *f;
|
||||
int pg;
|
||||
|
||||
memset(&t1000, 0x00, sizeof(t1000));
|
||||
t1000.is_t1200 = 0;
|
||||
t1000.turbo = 0xff;
|
||||
t1000.ems_port_index = 7; /* EMS disabled */
|
||||
@@ -934,6 +936,7 @@ machine_xt_t1200_init(const machine_t *model)
|
||||
{
|
||||
int pg;
|
||||
|
||||
memset(&t1000, 0x00, sizeof(t1000));
|
||||
t1000.is_t1200 = 1;
|
||||
t1000.ems_port_index = 7; /* EMS disabled */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user