Previous 15994 Revisions Next

r5663 Wednesday 9th September, 2009 at 21:35:50 UTC by Angelo Salese
[X1]: Fixed DMA I/O access
[src/mess/drivers]x1.c

src/mess/drivers/x1.c
r5662r5663
12981298   memory_write_byte(space, offset, data);
12991299}
13001300
1301static 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
1307static 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
13011314static const z80dma_interface x1_dma =
13021315{
13031316   "maincpu",
13041317
13051318   x1_dma_read_byte,
13061319   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,
13081321   NULL
13091322};
13101323

Previous 15994 Revisions Next


© 1998-2018 The MESS Team