trunk/src/mame/drivers/dkong.c
r18020 | r18021 | |
519 | 519 | fatalerror("hb_dma_read_byte - unmapped access for 0x%02x - bucket 0x%02x\n", offset, bucket); |
520 | 520 | |
521 | 521 | addr = ((bucket << 7) & 0x7c00) | (offset & 0x3ff); |
522 | | |
523 | | return space.read_byte(addr); |
| 522 | address_space *prog_space = machine().device("maincpu")->memory().space(AS_PROGRAM); |
| 523 | return prog_space->read_byte(addr); |
524 | 524 | } |
525 | 525 | |
526 | 526 | WRITE8_MEMBER(dkong_state::hb_dma_write_byte) |
r18020 | r18021 | |
532 | 532 | fatalerror("hb_dma_read_byte - unmapped access for 0x%02x - bucket 0x%02x\n", offset, bucket); |
533 | 533 | |
534 | 534 | addr = ((bucket << 7) & 0x7c00) | (offset & 0x3ff); |
535 | | |
536 | | space.write_byte(addr, data); |
| 535 | address_space *prog_space = machine().device("maincpu")->memory().space(AS_PROGRAM); |
| 536 | prog_space->write_byte(addr, data); |
537 | 537 | } |
538 | 538 | |
539 | 539 | READ8_MEMBER(dkong_state::p8257_ctl_r) |