src/mess/drivers/fmtowns.c
| r6167 | r6168 | |
| 828 | 828 | } |
| 829 | 829 | } |
| 830 | 830 | |
| 831 | static READ8_HANDLER( towns_gfx_high_r ) |
| 832 | { |
| 833 | return towns_gfxvram[offset]; |
| 834 | } |
| 835 | |
| 836 | static WRITE8_HANDLER( towns_gfx_high_w ) |
| 837 | { |
| 838 | towns_gfxvram[offset] = data; |
| 839 | } |
| 840 | |
| 831 | 841 | static READ8_HANDLER( towns_sys480_r ) |
| 832 | 842 | { |
| 833 | 843 | if(towns_system_port & 0x02) |
| r6167 | r6168 | |
| 1053 | 1063 | AM_RANGE(0x000f0000, 0x000f7fff) AM_RAM //READWRITE(SMH_BANK(12),SMH_BANK(12)) |
| 1054 | 1064 | AM_RANGE(0x000f8000, 0x000fffff) AM_READWRITE(SMH_BANK(11),SMH_BANK(12)) |
| 1055 | 1065 | AM_RANGE(0x00100000, 0x005fffff) AM_RAM // some extra RAM - seems to be needed to boot |
| 1056 | | AM_RANGE(0x80000000, 0x8003ffff) AM_RAM AM_MIRROR(0x1c0000) AM_BASE(&towns_vram) // VRAM |
| 1066 | AM_RANGE(0x80000000, 0x8003ffff) AM_READWRITE8(towns_gfx_high_r,towns_gfx_high_w,0xffffffff) AM_MIRROR(0x1c0000) // VRAM |
| 1057 | 1067 | AM_RANGE(0x81000000, 0x8101ffff) AM_RAM // Sprite RAM |
| 1058 | 1068 | AM_RANGE(0xc2000000, 0xc207ffff) AM_ROM AM_REGION("user",0x000000) // OS ROM |
| 1059 | 1069 | AM_RANGE(0xc2080000, 0xc20fffff) AM_ROM AM_REGION("user",0x100000) // DIC ROM |
| r6167 | r6168 | |
| 1126 | 1136 | { |
| 1127 | 1137 | towns_vram = auto_alloc_array(machine,UINT32,0x20000); |
| 1128 | 1138 | towns_cmos = auto_alloc_array(machine,UINT8,0x2000); |
| 1129 | | towns_gfxvram = auto_alloc_array(machine,UINT8,0x200000); |
| 1139 | towns_gfxvram = auto_alloc_array(machine,UINT8,0x40000); |
| 1130 | 1140 | towns_txtvram = auto_alloc_array(machine,UINT8,0x8000); |
| 1131 | 1141 | towns_serial_rom = auto_alloc_array(machine,UINT8,256/8); |
| 1132 | 1142 | towns_init_serial_rom(machine); |