trunk/src/mess/drivers/sms.c
| r20244 | r20245 | |
| 133 | 133 | AM_RANGE(0xf9, 0xf9) AM_MIRROR(0x06) AM_READ(sms_input_port_1_r) |
| 134 | 134 | ADDRESS_MAP_END |
| 135 | 135 | |
| 136 | |
| 137 | // I/O ports $3E and $3F do not exist o Mark-III |
| 138 | static ADDRESS_MAP_START( sms_no3e3f_io, AS_IO, 8, sms_state ) |
| 139 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 140 | ADDRESS_MAP_UNMAP_HIGH |
| 141 | AM_RANGE(0x40, 0x7f) AM_READ(sms_count_r) |
| 142 | AM_RANGE(0x40, 0x7f) AM_DEVWRITE("segapsg", segapsg_device, write) |
| 143 | AM_RANGE(0x80, 0x80) AM_MIRROR(0x3e) AM_DEVREADWRITE("sms_vdp", sega315_5124_device, vram_read, vram_write) |
| 144 | AM_RANGE(0x81, 0x81) AM_MIRROR(0x3e) AM_DEVREADWRITE("sms_vdp", sega315_5124_device, register_read, register_write) |
| 145 | AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x1e) AM_READ(sms_input_port_0_r) |
| 146 | AM_RANGE(0xc1, 0xc1) AM_MIRROR(0x1e) AM_READ(sms_input_port_1_r) |
| 147 | AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x0e) AM_READ(sms_input_port_0_r) |
| 148 | AM_RANGE(0xe1, 0xe1) AM_MIRROR(0x0e) AM_READ(sms_input_port_1_r) |
| 149 | AM_RANGE(0xf0, 0xf0) AM_READWRITE(sms_input_port_0_r, sms_ym2413_register_port_0_w) |
| 150 | AM_RANGE(0xf1, 0xf1) AM_READWRITE(sms_input_port_1_r, sms_ym2413_data_port_0_w) |
| 151 | AM_RANGE(0xf2, 0xf2) AM_READWRITE(sms_fm_detect_r, sms_fm_detect_w) |
| 152 | AM_RANGE(0xf3, 0xf3) AM_READ(sms_input_port_1_r) |
| 153 | AM_RANGE(0xf4, 0xf4) AM_MIRROR(0x02) AM_READ(sms_input_port_0_r) |
| 154 | AM_RANGE(0xf5, 0xf5) AM_MIRROR(0x02) AM_READ(sms_input_port_1_r) |
| 155 | AM_RANGE(0xf8, 0xf8) AM_MIRROR(0x06) AM_READ(sms_input_port_0_r) |
| 156 | AM_RANGE(0xf9, 0xf9) AM_MIRROR(0x06) AM_READ(sms_input_port_1_r) |
| 157 | ADDRESS_MAP_END |
| 158 | |
| 159 | |
| 136 | 160 | // It seems the Korean version does some more strict decoding on the I/O |
| 137 | 161 | // addresses. |
| 138 | 162 | // At least the mirrors for I/O ports $3E/$3F don't seem to exist there. |
| r20244 | r20245 | |
| 587 | 611 | MACHINE_CONFIG_END |
| 588 | 612 | |
| 589 | 613 | static MACHINE_CONFIG_DERIVED( sg1000m3, sms_fm ) |
| 614 | MCFG_CPU_MODIFY("maincpu") |
| 615 | MCFG_CPU_IO_MAP(sms_no3e3f_io) |
| 590 | 616 | |
| 591 | 617 | MCFG_CARTSLOT_MODIFY("cart1") |
| 592 | 618 | MCFG_CARTSLOT_EXTENSION_LIST("sms,bin,sg") |