Fixed hardcoded memory size on Toshiba T1000/T1200.
Added ability to disable video on T1200. Patch form John Elliott.
This commit is contained in:
parent
ff94c18a91
commit
636fd9748d
3 changed files with 23 additions and 2 deletions
10
src/t1000.c
10
src/t1000.c
|
|
@ -210,7 +210,7 @@ static void ems_set_hardram(struct t1000_system *sys, uint8_t val)
|
|||
sys->ems_base = 0;
|
||||
}
|
||||
/* pclog("EMS base set to %02x\n", val); */
|
||||
sys->ems_pages = 48 - 4 * sys->ems_base;
|
||||
sys->ems_pages = ((mem_size - 512) / 16) - 4 * sys->ems_base;
|
||||
if (sys->ems_pages < 0) sys->ems_pages = 0;
|
||||
/* Recalculate EMS mappings */
|
||||
for (n = 0; n < 4; n++)
|
||||
|
|
@ -421,6 +421,14 @@ static void write_t1000_ctl(uint16_t addr, uint8_t val, void *priv)
|
|||
}
|
||||
}
|
||||
break;
|
||||
/* It looks as if the T1200, like the T3100, can disable
|
||||
* its builtin video chipset if it detects the presence of
|
||||
* another video card. */
|
||||
case 6: if (romset == ROM_T1200)
|
||||
{
|
||||
t1000_video_enable(val & 0x01 ? 0 : 1);
|
||||
}
|
||||
break;
|
||||
/* EMS control*/
|
||||
case 0x0F:
|
||||
switch (sys->sys_ctl[0x0E])
|
||||
|
|
|
|||
Loading…
Reference in a new issue