trunk/src/devices/sound/aica.cpp
| r252877 | r252878 | |
| 414 | 414 | m_MidiOutR=m_MidiOutW=0; |
| 415 | 415 | |
| 416 | 416 | // get AICA RAM |
| 417 | if (m_ram_region != NULL) |
| 417 | 418 | { |
| 418 | | m_AICARAM = region()->base(); |
| 419 | | if (m_AICARAM) |
| 420 | | { |
| 421 | | m_AICARAM += m_roffset; |
| 422 | | m_AICARAM_LENGTH = region()->bytes(); |
| 423 | | m_RAM_MASK = m_AICARAM_LENGTH-1; |
| 424 | | m_RAM_MASK16 = m_RAM_MASK & 0x7ffffe; |
| 425 | | m_DSP.AICARAM = (UINT16 *)m_AICARAM; |
| 426 | | m_DSP.AICARAM_LENGTH = m_AICARAM_LENGTH/2; |
| 427 | | } |
| 419 | m_AICARAM = m_ram_region->base(); |
| 420 | m_AICARAM += m_roffset; |
| 421 | m_AICARAM_LENGTH = m_ram_region->bytes(); |
| 422 | m_RAM_MASK = m_AICARAM_LENGTH-1; |
| 423 | m_RAM_MASK16 = m_RAM_MASK & 0x7ffffe; |
| 424 | m_DSP.AICARAM = (UINT16 *)m_AICARAM; |
| 425 | m_DSP.AICARAM_LENGTH = m_AICARAM_LENGTH/2; |
| 428 | 426 | } |
| 429 | 427 | |
| 430 | 428 | m_timerA = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(aica_device::timerA_cb), this)); |
| r252877 | r252878 | |
| 1473 | 1471 | m_roffset(0), |
| 1474 | 1472 | m_irq_cb(*this), |
| 1475 | 1473 | m_main_irq_cb(*this), |
| 1474 | m_ram_region(*this, this->tag()), |
| 1476 | 1475 | m_IRQL(0), |
| 1477 | 1476 | m_IRQR(0), |
| 1478 | 1477 | m_BUFPTR(0), |
trunk/src/mame/drivers/igs011.cpp
| r252877 | r252878 | |
| 84 | 84 | { |
| 85 | 85 | public: |
| 86 | 86 | igs011_state(const machine_config &mconfig, device_type type, const char *tag) |
| 87 | | : driver_device(mconfig, type, tag), |
| 88 | | m_maincpu(*this, "maincpu"), |
| 89 | | m_oki(*this, "oki"), |
| 90 | | m_screen(*this, "screen"), |
| 91 | | m_palette(*this, "palette"), |
| 92 | | m_priority_ram(*this, "priority_ram"), |
| 93 | | m_vbowl_trackball(*this, "vbowl_trackball"), |
| 94 | | m_generic_paletteram_16(*this, "paletteram") { } |
| 87 | : driver_device(mconfig, type, tag) |
| 88 | , m_maincpu(*this, "maincpu") |
| 89 | , m_oki(*this, "oki") |
| 90 | , m_screen(*this, "screen") |
| 91 | , m_palette(*this, "palette") |
| 92 | , m_priority_ram(*this, "priority_ram") |
| 93 | , m_vbowl_trackball(*this, "vbowl_trackball") |
| 94 | , m_generic_paletteram_16(*this, "paletteram") |
| 95 | , m_gfx_region(*this, "blitter") |
| 96 | , m_gfx2_region(*this, "blitter_hi") |
| 97 | { |
| 98 | } |
| 95 | 99 | |
| 96 | 100 | /* devices */ |
| 97 | 101 | required_device<cpu_device> m_maincpu; |
| r252877 | r252878 | |
| 105 | 109 | required_shared_ptr<UINT16> m_generic_paletteram_16; |
| 106 | 110 | |
| 107 | 111 | std::unique_ptr<UINT8[]> m_layer[8]; |
| 112 | /* memory regions */ |
| 113 | required_memory_region m_gfx_region; |
| 114 | optional_memory_region m_gfx2_region; |
| 115 | |
| 116 | UINT8 *m_layer[8]; |
| 108 | 117 | UINT16 m_priority; |
| 109 | 118 | UINT8 m_lhb2_pen_hi; |
| 110 | 119 | UINT16 m_igs_dips_sel; |
| r252877 | r252878 | |
| 484 | 493 | UINT8 trans_pen, clear_pen, pen_hi, *dest; |
| 485 | 494 | UINT8 pen = 0; |
| 486 | 495 | |
| 487 | | UINT8 *gfx = memregion("blitter")->base(); |
| 488 | | UINT8 *gfx2 = memregion("blitter_hi")->base(); |
| 489 | | int gfx_size = memregion("blitter")->bytes(); |
| 490 | | int gfx2_size = memregion("blitter_hi")->bytes(); |
| 496 | UINT8 *gfx = m_gfx_region->base(); |
| 497 | int gfx_size = m_gfx_region->bytes(); |
| 491 | 498 | |
| 499 | UINT8 *gfx2 = (m_gfx2_region != NULL) ? m_gfx2_region->base() : NULL; |
| 500 | int gfx2_size = (m_gfx2_region != NULL) ? m_gfx2_region->bytes() : 0; |
| 501 | |
| 492 | 502 | const rectangle &clip = m_screen->visible_area(); |
| 493 | 503 | |
| 494 | 504 | COMBINE_DATA(&blitter.flags); |
trunk/src/mame/drivers/pc2000.cpp
| r252877 | r252878 | |
| 747 | 747 | { |
| 748 | 748 | std::string region_tag; |
| 749 | 749 | UINT8 *bios = memregion("bios")->base(); |
| 750 | | UINT8 *cart = memregion(region_tag.assign(m_cart->tag()).append(GENERIC_ROM_REGION_TAG).c_str())->base(); |
| 751 | | if (!cart) |
| 752 | | cart = memregion("bios")->base(); |
| 750 | memory_region *cart_region = memregion(region_tag.assign(m_cart->tag()).append(GENERIC_ROM_REGION_TAG).c_str()); |
| 751 | UINT8 *cart = (cart_region != NULL) ? cart_region->base() : memregion("bios")->base(); |
| 753 | 752 | |
| 754 | 753 | m_bank0->configure_entries(0, 0x10, bios, 0x4000); |
| 755 | 754 | m_bank1->configure_entries(0, 0x10, bios, 0x4000); |
| r252877 | r252878 | |
| 761 | 760 | { |
| 762 | 761 | std::string region_tag; |
| 763 | 762 | UINT8 *bios = memregion("bios")->base(); |
| 764 | | UINT8 *cart = memregion(region_tag.assign(m_cart->tag()).append(GENERIC_ROM_REGION_TAG).c_str())->base(); |
| 765 | | if (!cart) |
| 766 | | cart = memregion("bios")->base(); |
| 763 | memory_region *cart_region = memregion(region_tag.assign(m_cart->tag()).append(GENERIC_ROM_REGION_TAG).c_str()); |
| 764 | UINT8 *cart = (cart_region != NULL) ? cart_region->base() : memregion("bios")->base(); |
| 767 | 765 | |
| 768 | 766 | m_bank0->configure_entries(0, 0x20, bios, 0x4000); |
| 769 | 767 | m_bank1->configure_entries(0, 0x20, bios, 0x4000); |
trunk/src/mame/includes/playch10.h
| r252877 | r252878 | |
| 13 | 13 | { |
| 14 | 14 | public: |
| 15 | 15 | playch10_state(const machine_config &mconfig, device_type type, const char *tag) |
| 16 | | : driver_device(mconfig, type, tag), |
| 17 | | m_maincpu(*this, "maincpu"), |
| 18 | | m_ppu(*this, "ppu"), |
| 19 | | m_rp5h01(*this, "rp5h01"), |
| 20 | | m_ram_8w(*this, "ram_8w"), |
| 21 | | m_videoram(*this, "videoram"), |
| 22 | | m_timedata(*this, "timedata"), |
| 23 | | m_work_ram(*this, "work_ram"), |
| 24 | | m_gfxdecode(*this, "gfxdecode") |
| 25 | | { } |
| 16 | : driver_device(mconfig, type, tag) |
| 17 | , m_maincpu(*this, "maincpu") |
| 18 | , m_ppu(*this, "ppu") |
| 19 | , m_rp5h01(*this, "rp5h01") |
| 20 | , m_ram_8w(*this, "ram_8w") |
| 21 | , m_videoram(*this, "videoram") |
| 22 | , m_timedata(*this, "timedata") |
| 23 | , m_work_ram(*this, "work_ram") |
| 24 | , m_gfxdecode(*this, "gfxdecode") |
| 25 | , m_vrom_region(*this, "gfx2") |
| 26 | { |
| 27 | } |
| 26 | 28 | |
| 27 | 29 | required_device<cpu_device> m_maincpu; |
| 28 | 30 | required_device<ppu2c0x_device> m_ppu; |
| r252877 | r252878 | |
| 34 | 36 | required_shared_ptr<UINT8> m_work_ram; |
| 35 | 37 | required_device<gfxdecode_device> m_gfxdecode; |
| 36 | 38 | |
| 39 | optional_memory_region m_vrom_region; |
| 40 | |
| 37 | 41 | int m_up_8w; |
| 38 | 42 | int m_pc10_nmi_enable; |
| 39 | 43 | int m_pc10_dog_di; |
trunk/src/mame/machine/playch10.cpp
| r252877 | r252878 | |
| 38 | 38 | |
| 39 | 39 | void playch10_state::machine_start() |
| 40 | 40 | { |
| 41 | | m_vrom = memregion("gfx2")->base(); |
| 41 | m_vrom = (m_vrom_region != NULL) ? m_vrom_region->base() : NULL; |
| 42 | 42 | |
| 43 | 43 | /* allocate 4K of nametable ram here */ |
| 44 | 44 | /* move to individual boards as documentation of actual boards allows */ |
| r252877 | r252878 | |
| 58 | 58 | |
| 59 | 59 | MACHINE_START_MEMBER(playch10_state,playch10_hboard) |
| 60 | 60 | { |
| 61 | | m_vrom = memregion("gfx2")->base(); |
| 61 | m_vrom = (m_vrom_region != NULL) ? m_vrom_region->base() : NULL; |
| 62 | 62 | |
| 63 | 63 | /* allocate 4K of nametable ram here */ |
| 64 | 64 | /* move to individual boards as documentation of actual boards allows */ |