minor cleanup to GUS code
This commit is contained in:
@@ -244,7 +244,7 @@ gus_write(uint16_t addr, uint8_t val, priv_t priv)
|
|||||||
{
|
{
|
||||||
gus_t *dev = (gus_t *)priv;
|
gus_t *dev = (gus_t *)priv;
|
||||||
#if defined(DEV_BRANCH) && defined(USE_GUSMAX)
|
#if defined(DEV_BRANCH) && defined(USE_GUSMAX)
|
||||||
uint16_t ioport;
|
uint16_t csioport;
|
||||||
#endif
|
#endif
|
||||||
int c, d, old;
|
int c, d, old;
|
||||||
uint16_t port;
|
uint16_t port;
|
||||||
@@ -680,12 +680,12 @@ gus_write(uint16_t addr, uint8_t val, priv_t priv)
|
|||||||
#if defined(DEV_BRANCH) && defined(USE_GUSMAX)
|
#if defined(DEV_BRANCH) && defined(USE_GUSMAX)
|
||||||
if (val & 0x40) {
|
if (val & 0x40) {
|
||||||
if ((val & 0xF) != ((addr >> 4) & 0xF)) { /* Fix me : why is DOS application attempting to relocate the CODEC ? */
|
if ((val & 0xF) != ((addr >> 4) & 0xF)) { /* Fix me : why is DOS application attempting to relocate the CODEC ? */
|
||||||
ioport = 0x30c | ((addr >> 4) & 0xf);
|
csioport = 0x30c | ((addr >> 4) & 0xf);
|
||||||
io_removehandler(ioport, 4,
|
io_removehandler(csioport, 4,
|
||||||
cs423x_read,NULL,NULL,
|
cs423x_read,NULL,NULL,
|
||||||
cs423x_write,NULL,NULL,&dev->cs423x);
|
cs423x_write,NULL,NULL,&dev->cs423x);
|
||||||
ioport = 0x30c | ((val & 0xf) << 4);
|
csioport = 0x30c | ((val & 0xf) << 4);
|
||||||
io_sethandler(ioport, 4,
|
io_sethandler(csioport, 4,
|
||||||
cs423x_read,NULL,NULL,
|
cs423x_read,NULL,NULL,
|
||||||
cs423x_write,NULL,NULL, &dev->cs423x);
|
cs423x_write,NULL,NULL, &dev->cs423x);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user