diff options
Diffstat (limited to 'src/mame/includes/sidepckt.h')
-rw-r--r-- | src/mame/includes/sidepckt.h | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/src/mame/includes/sidepckt.h b/src/mame/includes/sidepckt.h deleted file mode 100644 index 9106e341866..00000000000 --- a/src/mame/includes/sidepckt.h +++ /dev/null @@ -1,79 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Ernesto Corvi -/****************************************************************************** - - Data East Side Pocket hardware - -******************************************************************************/ -#ifndef MAME_INCLUDES_SIDEPKT_H -#define MAME_INCLUDES_SIDEPKT_H - -#pragma once - -#include "machine/gen_latch.h" -#include "emupal.h" -#include "tilemap.h" - -class sidepckt_state : public driver_device -{ -public: - sidepckt_state(const machine_config &mconfig, device_type type, const char *tag) : - driver_device(mconfig, type, tag), - m_maincpu(*this, "maincpu"), - m_audiocpu(*this, "audiocpu"), - m_gfxdecode(*this, "gfxdecode"), - m_palette(*this, "palette"), - m_soundlatch(*this, "soundlatch"), - m_videoram(*this, "videoram"), - m_colorram(*this, "colorram"), - m_spriteram(*this, "spriteram") - { } - - void sidepcktb(machine_config &config); - void sidepckt(machine_config &config); - - void init_sidepckt(); - void init_sidepcktj(); - -private: - required_device<cpu_device> m_maincpu; - required_device<cpu_device> m_audiocpu; - required_device<gfxdecode_device> m_gfxdecode; - required_device<palette_device> m_palette; - required_device<generic_latch_8_device> m_soundlatch; - - required_shared_ptr<uint8_t> m_videoram; - required_shared_ptr<uint8_t> m_colorram; - required_shared_ptr<uint8_t> m_spriteram; - - tilemap_t *m_bg_tilemap; - const uint8_t* m_prot_table[3]; - uint8_t m_i8751_return; - uint8_t m_current_ptr; - uint8_t m_current_table; - uint8_t m_in_math; - uint8_t m_math_param; - uint8_t m_scroll_y; - - DECLARE_READ8_MEMBER(i8751_r); - DECLARE_WRITE8_MEMBER(i8751_w); - DECLARE_WRITE8_MEMBER(videoram_w); - DECLARE_WRITE8_MEMBER(colorram_w); - DECLARE_READ8_MEMBER(scroll_y_r); - DECLARE_WRITE8_MEMBER(scroll_y_w); - - TILE_GET_INFO_MEMBER(get_tile_info); - - virtual void machine_reset() override; - virtual void video_start() override; - void sidepckt_palette(palette_device &palette) const; - - uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect); - - void sidepckt_map(address_map &map); - void sidepcktb_map(address_map &map); - void sound_map(address_map &map); -}; - -#endif // MAME_INCLUDES_SIDEPKT_H |