src/mess/includes/fmtowns.h
| r14151 | r14152 | |
| 40 | 40 | WRITE8_HANDLER(towns_video_fd90_w); |
| 41 | 41 | READ8_HANDLER(towns_video_ff81_r); |
| 42 | 42 | WRITE8_HANDLER(towns_video_ff81_w); |
| 43 | READ32_HANDLER(towns_video_unknown_r); |
| 43 | 44 | READ8_HANDLER(towns_spriteram_low_r); |
| 44 | 45 | WRITE8_HANDLER(towns_spriteram_low_w); |
| 45 | 46 | READ8_HANDLER(towns_spriteram_r); |
| r14151 | r14152 | |
| 246 | 247 | DECLARE_READ8_MEMBER(towns_video_fd90_r); |
| 247 | 248 | DECLARE_WRITE8_MEMBER(towns_video_fd90_w); |
| 248 | 249 | DECLARE_READ8_MEMBER(towns_video_ff81_r); |
| 250 | DECLARE_READ32_MEMBER(towns_video_unknown_r); |
| 249 | 251 | DECLARE_WRITE8_MEMBER(towns_video_ff81_w); |
| 250 | 252 | DECLARE_READ8_MEMBER(towns_spriteram_low_r); |
| 251 | 253 | DECLARE_WRITE8_MEMBER(towns_spriteram_low_w); |
src/mess/drivers/fmtowns.c
| r14151 | r14152 | |
| 232 | 232 | case 0x05: |
| 233 | 233 | logerror("SYS: port 0x25 read\n"); |
| 234 | 234 | return 0x00; |
| 235 | | case 0x06: |
| 235 | /* case 0x06: |
| 236 | count = (m_towns_freerun_counter->time_elapsed() * ATTOSECONDS_TO_HZ(ATTOSECONDS_IN_USEC(1))).as_double(); |
| 237 | return count & 0xff; |
| 238 | case 0x07: |
| 239 | count = (m_towns_freerun_counter->time_elapsed() * ATTOSECONDS_TO_HZ(ATTOSECONDS_IN_USEC(1))).as_double(); |
| 240 | return (count >> 8) & 0xff; |
| 241 | */ case 0x06: |
| 236 | 242 | //logerror("SYS: (0x26) timer read\n"); |
| 237 | 243 | return m_freerun_timer; |
| 238 | 244 | case 0x07: |
| r14151 | r14152 | |
| 358 | 364 | |
| 359 | 365 | WRITE8_MEMBER(towns_state::towns_sys6c_w) |
| 360 | 366 | { |
| 361 | | // halts the CPU for a period of time (exact length unknown) |
| 367 | // halts the CPU for 1 microsecond |
| 362 | 368 | device_set_input_line(m_maincpu,INPUT_LINE_HALT,ASSERT_LINE); |
| 363 | 369 | m_towns_wait_timer->adjust(attotime::from_usec(1),0,attotime::never); |
| 364 | 370 | } |
| r14151 | r14152 | |
| 2110 | 2116 | static ADDRESS_MAP_START( towns_io , AS_IO, 32, towns_state) |
| 2111 | 2117 | // I/O ports derived from FM Towns/Bochs, these are specific to the FM Towns |
| 2112 | 2118 | // System ports |
| 2119 | ADDRESS_MAP_UNMAP_HIGH |
| 2113 | 2120 | AM_RANGE(0x0000,0x0003) AM_DEVREADWRITE8_LEGACY("pic8259_master", pic8259_r, pic8259_w, 0x00ff00ff) |
| 2114 | 2121 | AM_RANGE(0x0010,0x0013) AM_DEVREADWRITE8_LEGACY("pic8259_slave", pic8259_r, pic8259_w, 0x00ff00ff) |
| 2115 | 2122 | AM_RANGE(0x0020,0x0033) AM_READWRITE8(towns_system_r,towns_system_w, 0xffffffff) |
| r14151 | r14152 | |
| 2127 | 2134 | // Floppy controller |
| 2128 | 2135 | AM_RANGE(0x0200,0x020f) AM_READWRITE8(towns_floppy_r, towns_floppy_w, 0xffffffff) |
| 2129 | 2136 | // CRTC / Video |
| 2130 | | AM_RANGE(0x0400,0x0403) AM_NOP // R/O (0x400) |
| 2137 | AM_RANGE(0x0400,0x0403) AM_READ(towns_video_unknown_r) // R/O (0x400) |
| 2131 | 2138 | AM_RANGE(0x0404,0x0407) AM_READWRITE(towns_video_404_r, towns_video_404_w) // R/W (0x404) |
| 2132 | 2139 | AM_RANGE(0x0440,0x045f) AM_READWRITE8(towns_video_440_r, towns_video_440_w, 0xffffffff) |
| 2133 | 2140 | // System port |
| r14151 | r14152 | |
| 2153 | 2160 | // CMOS |
| 2154 | 2161 | AM_RANGE(0x3000,0x3fff) AM_READWRITE8(towns_cmos8_r, towns_cmos8_w,0x00ff00ff) |
| 2155 | 2162 | // Something (MS-DOS wants this 0x41ff to be 1) |
| 2156 | | AM_RANGE(0x41fc,0x41ff) AM_READ8(towns_41ff_r,0xff000000) |
| 2163 | // AM_RANGE(0x41fc,0x41ff) AM_READ8(towns_41ff_r,0xff000000) |
| 2157 | 2164 | // CRTC / Video (again) |
| 2158 | 2165 | AM_RANGE(0xfd90,0xfda3) AM_READWRITE8(towns_video_fd90_r, towns_video_fd90_w, 0xffffffff) |
| 2159 | 2166 | AM_RANGE(0xff80,0xffff) AM_READWRITE8(towns_video_cff80_r,towns_video_cff80_w,0xffffffff) |