Previous 199869 Revisions Next

r18021 Wednesday 19th September, 2012 at 14:51:15 UTC by Miodrag Milanović
dkong fix (no whatsnew)
[src/mame/drivers]dkong.c

trunk/src/mame/drivers/dkong.c
r18020r18021
519519        fatalerror("hb_dma_read_byte - unmapped access for 0x%02x - bucket 0x%02x\n", offset, bucket);
520520
521521    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);
524524}
525525
526526WRITE8_MEMBER(dkong_state::hb_dma_write_byte)
r18020r18021
532532        fatalerror("hb_dma_read_byte - unmapped access for 0x%02x - bucket 0x%02x\n", offset, bucket);
533533
534534    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);
537537}
538538
539539READ8_MEMBER(dkong_state::p8257_ctl_r)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team