trunk/src/mess/drivers/nes.c
| r242670 | r242671 | |
| 757 | 757 | slot->prgram_alloc(0x8000); |
| 758 | 758 | |
| 759 | 759 | slot->pcb_start(machine(), m_ciram, FALSE); |
| 760 | | slot->pcb_reg_postload(machine()); |
| 761 | 760 | m_ppu->space(AS_PROGRAM).install_readwrite_handler(0, 0x1fff, read8_delegate(FUNC(device_nes_cart_interface::chr_r),(device_nes_cart_interface *)slot), write8_delegate(FUNC(device_nes_cart_interface::chr_w),(device_nes_cart_interface *)slot)); |
| 762 | 761 | m_ppu->space(AS_PROGRAM).install_readwrite_handler(0x2000, 0x3eff, read8_delegate(FUNC(device_nes_cart_interface::nt_r),(device_nes_cart_interface *)slot), write8_delegate(FUNC(device_nes_cart_interface::nt_w),(device_nes_cart_interface *)slot)); |
| 763 | 762 | m_ppu->set_scanline_callback(ppu2c0x_scanline_delegate(FUNC(device_nes_cart_interface::scanline_irq),(device_nes_cart_interface *)slot)); |
| r242670 | r242671 | |
| 772 | 771 | m_ciram = auto_alloc_array(machine(), UINT8, 0x800); |
| 773 | 772 | setup_ioports(); |
| 774 | 773 | setup_disk(m_disk); |
| 774 | state_register(); |
| 775 | 775 | } |
| 776 | 776 | |
| 777 | 777 | MACHINE_RESET_MEMBER( nes_state, fds ) |