trunk/src/mame/drivers/pinkiri8.c
| r29550 | r29551 | |
| 46 | 46 | public: |
| 47 | 47 | pinkiri8_state(const machine_config &mconfig, device_type type, const char *tag) |
| 48 | 48 | : driver_device(mconfig, type, tag), |
| 49 | | m_janshi_back_vram(*this, "back_vram"), |
| 50 | | m_janshi_vram1(*this, "vram1"), |
| 51 | | m_janshi_unk1(*this, "unk1"), |
| 52 | | m_janshi_widthflags(*this, "widthflags"), |
| 53 | | m_janshi_unk2(*this, "unk2"), |
| 54 | | m_janshi_vram2(*this, "vram2"), |
| 55 | | m_janshi_paletteram(*this, "paletteram"), |
| 56 | | m_janshi_paletteram2(*this, "paletteram2"), |
| 57 | | m_janshi_crtc_regs(*this, "crtc_regs"), |
| 49 | m_janshi_back_vram(*this, "janshivdp:back_vram"), |
| 50 | m_janshi_vram1(*this, "janshivdp:vram1"), |
| 51 | m_janshi_unk1(*this, "janshivdp:unk1"), |
| 52 | m_janshi_widthflags(*this, "janshivdp:widthflags"), |
| 53 | m_janshi_unk2(*this, "janshivdp:unk2"), |
| 54 | m_janshi_vram2(*this, "janshivdp:vram2"), |
| 55 | m_janshi_paletteram(*this, "janshivdp:paletteram"), |
| 56 | m_janshi_paletteram2(*this, "janshivdp:paletteram2"), |
| 57 | m_janshi_crtc_regs(*this, "janshivdp:crtc_regs"), |
| 58 | 58 | m_maincpu(*this, "maincpu"), |
| 59 | 59 | m_gfxdecode(*this, "gfxdecode"), |
| 60 | 60 | m_palette(*this, "palette") { } |
| r29550 | r29551 | |
| 102 | 102 | { |
| 103 | 103 | public: |
| 104 | 104 | janshi_vdp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 105 | DECLARE_ADDRESS_MAP(map, 8); |
| 105 | 106 | protected: |
| 106 | 107 | virtual void device_config_complete(); |
| 107 | 108 | virtual void device_validity_check(validity_checker &valid) const; |
| r29550 | r29551 | |
| 112 | 113 | }; |
| 113 | 114 | |
| 114 | 115 | |
| 115 | | static ADDRESS_MAP_START( janshi_vdp_map8, AS_0, 8, janshi_vdp_device ) |
| 116 | | |
| 116 | DEVICE_ADDRESS_MAP_START( map, 8, janshi_vdp_device ) |
| 117 | 117 | AM_RANGE(0xfc0000, 0xfc1fff) AM_RAM AM_SHARE("back_vram") // bg tilemap? |
| 118 | 118 | AM_RANGE(0xfc2000, 0xfc2fff) AM_RAM AM_SHARE("vram1") // xpos, colour, tile number etc. |
| 119 | 119 | |
| r29550 | r29551 | |
| 134 | 134 | janshi_vdp_device::janshi_vdp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 135 | 135 | : device_t(mconfig, JANSHIVDP, "JANSHIVDP", tag, owner, clock, "janshi_vdp", __FILE__), |
| 136 | 136 | device_memory_interface(mconfig, *this), |
| 137 | | m_space_config("janshi_vdp", ENDIANNESS_LITTLE, 8,24, 0, NULL, *ADDRESS_MAP_NAME(janshi_vdp_map8)) |
| 137 | m_space_config("janshi_vdp", ENDIANNESS_LITTLE, 8,24, 0, address_map_delegate(FUNC(janshi_vdp_device::map), this)) |
| 138 | 138 | { |
| 139 | 139 | } |
| 140 | 140 | |