src/mess/drivers/fmtowns.c
| r5947 | r5948 | |
| 406 | 406 | if(ACCESSING_BITS_0_7) |
| 407 | 407 | { |
| 408 | 408 | 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 |
| 410 | 410 | } |
| 411 | 411 | break; |
| 412 | 412 | case 0x01: |
| r5947 | r5948 | |
| 462 | 462 | cmos[offset] = data; |
| 463 | 463 | } |
| 464 | 464 | |
| 465 | static 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 | |
| 475 | static 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 | |
| 465 | 485 | static READ32_HANDLER( towns_cmos_r ) |
| 466 | 486 | { |
| 467 | 487 | return towns_cmos[offset]; |
| r5947 | r5948 | |
| 673 | 693 | AM_RANGE(0x000cc000, 0x000cff7f) AM_READWRITE(SMH_BANK(8),SMH_BANK(8)) |
| 674 | 694 | AM_RANGE(0x000cff80, 0x000cffff) AM_READWRITE8(towns_video_cff80_r,towns_video_cff80_w,0xffffffff) |
| 675 | 695 | 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 |
| 677 | 697 | AM_RANGE(0x000da000, 0x000effff) AM_RAM //READWRITE(SMH_BANK(11),SMH_BANK(11)) |
| 678 | 698 | AM_RANGE(0x000f0000, 0x000f7fff) AM_RAM //READWRITE(SMH_BANK(12),SMH_BANK(12)) |
| 679 | 699 | AM_RANGE(0x000f8000, 0x000fffff) AM_READWRITE(SMH_BANK(11),SMH_BANK(12)) |