src/mess/machine/pc.c
| r15496 | r15497 | |
| 37 | 37 | #include "sound/speaker.h" |
| 38 | 38 | |
| 39 | 39 | #include "machine/8237dma.h" |
| 40 | #include "machine/wd17xx.h" |
| 40 | 41 | |
| 41 | 42 | #include "machine/ram.h" |
| 42 | 43 | |
| r15496 | r15497 | |
| 1105 | 1106 | pc_set_irq_line( machine, 1, state ); |
| 1106 | 1107 | } |
| 1107 | 1108 | |
| 1109 | /* |
| 1110 | * MC1502 uses a FD1793 clone instead of uPD765 |
| 1111 | */ |
| 1108 | 1112 | |
| 1113 | READ8_DEVICE_HANDLER( mc1502_wd17xx_aux_r ) |
| 1114 | { |
| 1115 | UINT8 data; |
| 1116 | |
| 1117 | data = 0; |
| 1118 | |
| 1119 | return data; |
| 1120 | } |
| 1121 | |
| 1122 | WRITE8_DEVICE_HANDLER( mc1502_wd17xx_aux_w ) |
| 1123 | { |
| 1124 | // master reset |
| 1125 | wd17xx_mr_w(device, BIT(data, 0)); |
| 1126 | |
| 1127 | // SIDE ONE |
| 1128 | wd17xx_set_side(device, BIT(data, 1)); |
| 1129 | } |
| 1130 | |
| 1131 | READ8_DEVICE_HANDLER( mc1502_wd17xx_drq_r ) |
| 1132 | { |
| 1133 | UINT8 data; |
| 1134 | |
| 1135 | data = wd17xx_drq_r(device); |
| 1136 | |
| 1137 | return data; |
| 1138 | } |
| 1139 | |
| 1109 | 1140 | /********************************************************** |
| 1110 | 1141 | * |
| 1111 | 1142 | * Initialization code |
src/mess/drivers/pc.c
| r15496 | r15497 | |
| 136 | 136 | AM_RANGE(0x0029, 0x0029) AM_DEVREADWRITE("upd8251", i8251_device, status_r, control_w) |
| 137 | 137 | AM_RANGE(0x0040, 0x0043) AM_DEVREADWRITE_LEGACY("pit8253", pit8253_r, pit8253_w) |
| 138 | 138 | AM_RANGE(0x0060, 0x0063) AM_DEVREADWRITE("ppi8255", i8255_device, read, write) |
| 139 | | AM_RANGE(0x0068, 0x006B) AM_DEVREADWRITE("ppi8255n2", i8255_device, read, write) // keyboard poll |
| 140 | | AM_RANGE(0x0080, 0x0087) AM_READWRITE(pc_page_r, pc_page_w) // check |
| 139 | AM_RANGE(0x0068, 0x006B) AM_DEVREADWRITE("ppi8255n2", i8255_device, read, write) // keyboard poll |
| 140 | AM_RANGE(0x0100, 0x0100) AM_DEVREADWRITE_LEGACY("vg93", mc1502_wd17xx_aux_r, mc1502_wd17xx_aux_w) |
| 141 | AM_RANGE(0x0108, 0x0108) AM_DEVREAD_LEGACY("vg93", mc1502_wd17xx_drq_r) |
| 141 | 142 | AM_RANGE(0x010c, 0x010c) AM_DEVREADWRITE_LEGACY("vg93", wd17xx_status_r, wd17xx_command_w) |
| 142 | 143 | AM_RANGE(0x010d, 0x010d) AM_DEVREADWRITE_LEGACY("vg93", wd17xx_track_r, wd17xx_track_w) |
| 143 | 144 | AM_RANGE(0x010e, 0x010e) AM_DEVREADWRITE_LEGACY("vg93", wd17xx_sector_r, wd17xx_sector_w) |
| r15496 | r15497 | |
| 1276 | 1277 | /* cassette */ |
| 1277 | 1278 | MCFG_CASSETTE_ADD( CASSETTE_TAG, ibm5150_cassette_interface ) /* TODO: verify */ |
| 1278 | 1279 | |
| 1279 | | MCFG_FD1797_ADD( "vg93", default_wd17xx_interface ) |
| 1280 | MCFG_FD1793_ADD( "vg93", default_wd17xx_interface_2_drives ) |
| 1280 | 1281 | MCFG_LEGACY_FLOPPY_2_DRIVES_ADD(ibmpc_floppy_interface) |
| 1281 | 1282 | |
| 1282 | 1283 | /* internal ram */ |