src/mess/drivers/x1.c
| r5662 | r5663 | |
| 1298 | 1298 | memory_write_byte(space, offset, data); |
| 1299 | 1299 | } |
| 1300 | 1300 | |
| 1301 | static READ8_DEVICE_HANDLER(x1_dma_read_io) |
| 1302 | { |
| 1303 | const address_space *space = cputag_get_address_space(device->machine, "maincpu", ADDRESS_SPACE_IO); |
| 1304 | return memory_read_byte(space, offset); |
| 1305 | } |
| 1306 | |
| 1307 | static WRITE8_DEVICE_HANDLER(x1_dma_write_io) |
| 1308 | { |
| 1309 | const address_space *space = cputag_get_address_space(device->machine, "maincpu", ADDRESS_SPACE_IO); |
| 1310 | memory_write_byte(space, offset, data); |
| 1311 | } |
| 1312 | |
| 1313 | |
| 1301 | 1314 | static const z80dma_interface x1_dma = |
| 1302 | 1315 | { |
| 1303 | 1316 | "maincpu", |
| 1304 | 1317 | |
| 1305 | 1318 | x1_dma_read_byte, |
| 1306 | 1319 | x1_dma_write_byte, |
| 1307 | | 0, 0, 0, 0, |
| 1320 | x1_dma_read_io, x1_dma_write_io, x1_dma_read_io, x1_dma_write_io, |
| 1308 | 1321 | NULL |
| 1309 | 1322 | }; |
| 1310 | 1323 | |