Previous 15994 Revisions Next

r5948 Saturday 3rd October, 2009 at 02:13:10 UTC by Barry Rodewald
[FMTOWNS] Fixed CMOS access from 0xd8000, fmtowns and fmtownsa both get to going CD checks.
[src/mess/drivers]fmtowns.c

src/mess/drivers/fmtowns.c
r5947r5948
406406         if(ACCESSING_BITS_0_7)
407407         {
408408            logerror("SYS: read RAM size port\n");
409            return 0x08;  // 6MB is standard for the Marty
409            return 0x06;  // 6MB is standard for the Marty
410410         }
411411         break;
412412      case 0x01:
r5947r5948
462462   cmos[offset] = data;
463463}
464464
465static READ8_HANDLER( towns_cmos_low_r )
466{
467   UINT8* cmos = (UINT8*)towns_cmos;
468
469   if(towns_mainmem_enable != 0)
470      return mess_ram[offset + 0xd8000];
471     
472   return cmos[offset];
473}
474
475static WRITE8_HANDLER( towns_cmos_low_w )
476{
477   UINT8* cmos = (UINT8*)towns_cmos;
478
479   if(towns_mainmem_enable != 0)
480      mess_ram[offset+0xd8000] = data;
481   else
482      cmos[offset] = data;
483}
484
465485static READ32_HANDLER( towns_cmos_r )
466486{
467487   return towns_cmos[offset];
r5947r5948
673693  AM_RANGE(0x000cc000, 0x000cff7f) AM_READWRITE(SMH_BANK(8),SMH_BANK(8))
674694  AM_RANGE(0x000cff80, 0x000cffff) AM_READWRITE8(towns_video_cff80_r,towns_video_cff80_w,0xffffffff)
675695  AM_RANGE(0x000d0000, 0x000d7fff) AM_RAM
676  AM_RANGE(0x000d8000, 0x000d9fff) AM_READWRITE(towns_cmos_r,towns_cmos_w) // CMOS? RAM
696  AM_RANGE(0x000d8000, 0x000d9fff) AM_READWRITE8(towns_cmos_low_r,towns_cmos_low_w,0xffffffff) // CMOS? RAM
677697  AM_RANGE(0x000da000, 0x000effff) AM_RAM //READWRITE(SMH_BANK(11),SMH_BANK(11))
678698  AM_RANGE(0x000f0000, 0x000f7fff) AM_RAM //READWRITE(SMH_BANK(12),SMH_BANK(12))
679699  AM_RANGE(0x000f8000, 0x000fffff) AM_READWRITE(SMH_BANK(11),SMH_BANK(12))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team