diff options
Diffstat (limited to 'src/mame/includes/galaxian.h')
-rw-r--r-- | src/mame/includes/galaxian.h | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/src/mame/includes/galaxian.h b/src/mame/includes/galaxian.h index ee742054c19..4dfdc1ded65 100644 --- a/src/mame/includes/galaxian.h +++ b/src/mame/includes/galaxian.h @@ -81,34 +81,34 @@ public: optional_ioport m_fake_select; optional_ioport_array<10> m_tenspot_game_dsw; - required_shared_ptr<UINT8> m_spriteram; - required_shared_ptr<UINT8> m_videoram; - optional_shared_ptr<UINT8> m_decrypted_opcodes; + required_shared_ptr<uint8_t> m_spriteram; + required_shared_ptr<uint8_t> m_videoram; + optional_shared_ptr<uint8_t> m_decrypted_opcodes; int m_bullets_base; int m_sprites_base; int m_numspritegens; int m_counter_74ls161[2]; int m_direction[2]; - UINT8 m_gmgalax_selected_game; - UINT8 m_zigzag_ay8910_latch; - UINT8 m_kingball_speech_dip; - UINT8 m_kingball_sound; - UINT8 m_mshuttle_ay8910_cs; - UINT16 m_protection_state; - UINT8 m_protection_result; - UINT8 m_konami_sound_control; - UINT8 m_sfx_sample_control; - UINT8 m_moonwar_port_select; - UINT8 m_irq_enabled; + uint8_t m_gmgalax_selected_game; + uint8_t m_zigzag_ay8910_latch; + uint8_t m_kingball_speech_dip; + uint8_t m_kingball_sound; + uint8_t m_mshuttle_ay8910_cs; + uint16_t m_protection_state; + uint8_t m_protection_result; + uint8_t m_konami_sound_control; + uint8_t m_sfx_sample_control; + uint8_t m_moonwar_port_select; + uint8_t m_irq_enabled; int m_irq_line; int m_tenspot_current_game; - UINT8 m_frogger_adjust; - UINT8 m_sfx_tilemap; + uint8_t m_frogger_adjust; + uint8_t m_sfx_tilemap; /* video extension callbacks */ - typedef void (galaxian_state::*galaxian_extend_tile_info_func)(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); - typedef void (galaxian_state::*galaxian_extend_sprite_info_func)(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); + typedef void (galaxian_state::*galaxian_extend_tile_info_func)(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x); + typedef void (galaxian_state::*galaxian_extend_sprite_info_func)(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); typedef void (galaxian_state::*galaxian_draw_bullet_func)(bitmap_rgb32 &bitmap, const rectangle &cliprect, int offs, int x, int y); typedef void (galaxian_state::*galaxian_draw_background_func)(bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -118,20 +118,20 @@ public: galaxian_draw_background_func m_draw_background_ptr; tilemap_t *m_bg_tilemap; - UINT8 m_flipscreen_x; - UINT8 m_flipscreen_y; - UINT8 m_background_enable; - UINT8 m_background_red; - UINT8 m_background_green; - UINT8 m_background_blue; - UINT32 m_star_rng_origin; - UINT32 m_star_rng_origin_frame; + uint8_t m_flipscreen_x; + uint8_t m_flipscreen_y; + uint8_t m_background_enable; + uint8_t m_background_red; + uint8_t m_background_green; + uint8_t m_background_blue; + uint32_t m_star_rng_origin; + uint32_t m_star_rng_origin_frame; rgb_t m_star_color[64]; - std::unique_ptr<UINT8[]> m_stars; - UINT8 m_stars_enabled; - UINT8 m_stars_blink_state; + std::unique_ptr<uint8_t[]> m_stars; + uint8_t m_stars_enabled; + uint8_t m_stars_blink_state; rgb_t m_bullet_color[8]; - UINT8 m_gfxbank[5]; + uint8_t m_gfxbank[5]; DECLARE_WRITE8_MEMBER(galaxian_videoram_w); DECLARE_WRITE8_MEMBER(galaxian_objram_w); DECLARE_WRITE8_MEMBER(galaxian_flip_screen_x_w); @@ -273,18 +273,18 @@ public: DECLARE_PALETTE_INIT(galaxian); DECLARE_PALETTE_INIT(moonwar); void tenspot_set_game_bank(int bank, int from_game); - UINT32 screen_update_galaxian(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); + uint32_t screen_update_galaxian(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(interrupt_gen); INTERRUPT_GEN_MEMBER(fakechange_interrupt_gen); TIMER_DEVICE_CALLBACK_MEMBER(checkmaj_irq0_gen); TIMER_DEVICE_CALLBACK_MEMBER(galaxian_stars_blink_timer); TIMER_DEVICE_CALLBACK_MEMBER(timefgtr_scanline); void state_save_register(); - void sprites_draw(bitmap_rgb32 &bitmap, const rectangle &cliprect, const UINT8 *spritebase); - void bullets_draw(bitmap_rgb32 &bitmap, const rectangle &cliprect, const UINT8 *base); + void sprites_draw(bitmap_rgb32 &bitmap, const rectangle &cliprect, const uint8_t *spritebase); + void bullets_draw(bitmap_rgb32 &bitmap, const rectangle &cliprect, const uint8_t *base); void stars_init(); void stars_update_origin(); - void stars_draw_row(bitmap_rgb32 &bitmap, int maxx, int y, UINT32 star_offs, UINT8 starmask); + void stars_draw_row(bitmap_rgb32 &bitmap, int maxx, int y, uint32_t star_offs, uint8_t starmask); void galaxian_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect); void background_draw_colorsplit(bitmap_rgb32 &bitmap, const rectangle &cliprect, rgb_t color, int split, int split_flipped); void scramble_draw_stars(bitmap_rgb32 &bitmap, const rectangle &cliprect, int maxx); @@ -299,26 +299,26 @@ public: void mshuttle_draw_bullet(bitmap_rgb32 &bitmap, const rectangle &cliprect, int offs, int x, int y); void scramble_draw_bullet(bitmap_rgb32 &bitmap, const rectangle &cliprect, int offs, int x, int y); void theend_draw_bullet(bitmap_rgb32 &bitmap, const rectangle &cliprect, int offs, int x, int y); - void upper_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); - void upper_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); - void frogger_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); - void frogger_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); - void gmgalax_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); - void gmgalax_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); - void pisces_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); - void pisces_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); - void batman2_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); - void mooncrst_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); - void mooncrst_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); - void moonqsr_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); - void moonqsr_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); - void mshuttle_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); - void mshuttle_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); - void calipso_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); - void jumpbug_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); - void jumpbug_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); + void upper_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x); + void upper_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); + void frogger_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x); + void frogger_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); + void gmgalax_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x); + void gmgalax_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); + void pisces_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x); + void pisces_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); + void batman2_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x); + void mooncrst_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x); + void mooncrst_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); + void moonqsr_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x); + void moonqsr_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); + void mshuttle_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x); + void mshuttle_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); + void calipso_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); + void jumpbug_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x); + void jumpbug_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color); void monsterz_set_latch(); - void decode_mooncrst(int length, UINT8 *dest); + void decode_mooncrst(int length, uint8_t *dest); void decode_checkman(); void decode_dingoe(); void decode_frogger_sound(); @@ -328,7 +328,7 @@ public: void decode_losttomb_gfx(); void decode_superbon(); void unmap_galaxian_sound(offs_t base); - void mshuttle_decode(const UINT8 convtable[8][16]); + void mshuttle_decode(const uint8_t convtable[8][16]); void common_init(galaxian_draw_bullet_func draw_bullet,galaxian_draw_background_func draw_background, galaxian_extend_tile_info_func extend_tile_info,galaxian_extend_sprite_info_func extend_sprite_info); }; |