mirror of
https://github.com/86Box/86Box.git
synced 2025-01-22 09:11:50 -05:00
CS423x: Change Control Indirect Address reserved bit readout for VS440FX BIOS
This commit is contained in:
parent
5e12d46f32
commit
351390b579
1 changed files with 8 additions and 1 deletions
|
@ -147,12 +147,19 @@ cs423x_read(uint16_t addr, void *priv)
|
|||
ret |= 0x04;
|
||||
break;
|
||||
|
||||
case 3: /* Control Indirect Access Register */
|
||||
/* Intel VS440FX BIOS tells CS4236 from CS4232 through the upper bits. Setting them is enough. */
|
||||
ret |= 0xf0;
|
||||
break;
|
||||
|
||||
case 4: /* Control Indirect Data Register */
|
||||
ret = dev->indirect_regs[dev->regs[3]];
|
||||
break;
|
||||
|
||||
case 5: /* Control/RAM Access */
|
||||
/* Reading RAM is undocumented; the Windows drivers do so. */
|
||||
/* Reading RAM is undocumented, but performed by:
|
||||
- Windows drivers (unknown purpose)
|
||||
- Intel VS440FX BIOS (PnP ROM checksum recalculation) */
|
||||
if (dev->ram_dl == 3)
|
||||
ret = dev->ram_data[dev->ram_addr++];
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue