mirror of
https://github.com/holub/mame
synced 2025-04-24 01:11:11 +03:00
init vars for coverity (includes/m)
This commit is contained in:
parent
5b033a9779
commit
0a208af76d
@ -116,8 +116,8 @@ private:
|
||||
required_device<ttl74123_device> m_ic8j1;
|
||||
required_device<ttl74123_device> m_ic8j2;
|
||||
|
||||
gfx_element * m_back_gfx;
|
||||
uint8_t m_bottomline;
|
||||
gfx_element * m_back_gfx = nullptr;
|
||||
uint8_t m_bottomline = 0U;
|
||||
|
||||
void m10_ctrl_w(uint8_t data);
|
||||
void m11_ctrl_w(uint8_t data);
|
||||
|
@ -39,10 +39,10 @@ protected:
|
||||
virtual void m52_scroll_w(uint8_t data);
|
||||
|
||||
/* board mod changes? */
|
||||
int m_spritelimit;
|
||||
bool m_do_bg_fills;
|
||||
int m_spritelimit = 0;
|
||||
bool m_do_bg_fills = false;
|
||||
|
||||
tilemap_t* m_tx_tilemap;
|
||||
tilemap_t* m_tx_tilemap = nullptr;
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<screen_device> m_screen;
|
||||
@ -54,11 +54,11 @@ private:
|
||||
optional_shared_ptr<uint8_t> m_spriteram;
|
||||
|
||||
/* video-related */
|
||||
uint8_t m_bg1xpos;
|
||||
uint8_t m_bg1ypos;
|
||||
uint8_t m_bg2xpos;
|
||||
uint8_t m_bg2ypos;
|
||||
uint8_t m_bgcontrol;
|
||||
uint8_t m_bg1xpos = 0U;
|
||||
uint8_t m_bg1ypos = 0U;
|
||||
uint8_t m_bg2xpos = 0U;
|
||||
uint8_t m_bg2ypos = 0U;
|
||||
uint8_t m_bgcontrol = 0U;
|
||||
|
||||
required_device<gfxdecode_device> m_sp_gfxdecode;
|
||||
required_device<gfxdecode_device> m_tx_gfxdecode;
|
||||
|
@ -30,8 +30,8 @@ private:
|
||||
required_shared_ptr<uint8_t> m_spriteram;
|
||||
|
||||
/* video-related */
|
||||
tilemap_t* m_bg_tilemap;
|
||||
int m_flipscreen;
|
||||
tilemap_t* m_bg_tilemap = nullptr;
|
||||
int m_flipscreen = 0;
|
||||
void m57_videoram_w(offs_t offset, uint8_t data);
|
||||
void m57_flipscreen_w(uint8_t data);
|
||||
TILE_GET_INFO_MEMBER(get_tile_info);
|
||||
|
@ -50,7 +50,7 @@ private:
|
||||
required_shared_ptr<uint8_t> m_score_panel_disabled;
|
||||
|
||||
/* video-related */
|
||||
tilemap_t* m_bg_tilemap;
|
||||
tilemap_t* m_bg_tilemap = nullptr;
|
||||
bitmap_ind16 m_scroll_panel_bitmap;
|
||||
|
||||
void videoram_w(offs_t offset, uint8_t data);
|
||||
|
@ -57,8 +57,8 @@ protected:
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<irem_audio_device> m_audio;
|
||||
|
||||
tilemap_t* m_bg_tilemap;
|
||||
uint8_t m_kidniki_background_bank;
|
||||
tilemap_t* m_bg_tilemap = nullptr;
|
||||
uint8_t m_kidniki_background_bank = 0;
|
||||
|
||||
void m62_flipscreen_w(uint8_t data);
|
||||
void m62_hscroll_low_w(uint8_t data);
|
||||
@ -78,20 +78,20 @@ private:
|
||||
optional_shared_ptr<uint8_t> m_scrollram;
|
||||
|
||||
/* video-related */
|
||||
tilemap_t* m_fg_tilemap;
|
||||
int m_flipscreen;
|
||||
tilemap_t* m_fg_tilemap = nullptr;
|
||||
int m_flipscreen = 0;
|
||||
required_region_ptr<uint8_t> m_sprite_height_prom;
|
||||
required_region_ptr<uint8_t> m_sprite_color_proms;
|
||||
required_region_ptr<uint8_t> m_chr_color_proms;
|
||||
optional_region_ptr<uint8_t> m_fg_color_proms;
|
||||
int32_t m_m62_background_hscroll;
|
||||
int32_t m_m62_background_vscroll;
|
||||
int32_t m_kidniki_text_vscroll;
|
||||
int m_ldrun3_topbottom_mask;
|
||||
int32_t m_spelunkr_palbank;
|
||||
int32_t m_m62_background_hscroll = 0;
|
||||
int32_t m_m62_background_vscroll = 0;
|
||||
int32_t m_kidniki_text_vscroll = 0;
|
||||
int m_ldrun3_topbottom_mask = 0;
|
||||
int32_t m_spelunkr_palbank = 0;
|
||||
|
||||
/* misc */
|
||||
int m_ldrun2_bankswap; //ldrun2
|
||||
int m_ldrun2_bankswap = 0; //ldrun2
|
||||
int m_bankcontrol[2]; //ldrun2
|
||||
uint8_t ldrun2_bankswitch_r();
|
||||
void ldrun2_bankswitch_w(offs_t offset, uint8_t data);
|
||||
|
@ -65,9 +65,9 @@ private:
|
||||
required_shared_ptr<uint8_t> m_edge2_pos;
|
||||
required_shared_ptr<uint8_t> m_scroll;
|
||||
|
||||
tilemap_t *m_tilemap_fg;
|
||||
tilemap_t *m_tilemap_edge1[4];
|
||||
tilemap_t *m_tilemap_edge2[4];
|
||||
tilemap_t *m_tilemap_fg = nullptr;
|
||||
tilemap_t *m_tilemap_edge1[4]{};
|
||||
tilemap_t *m_tilemap_edge2[4]{};
|
||||
std::unique_ptr<bitmap_ind16> m_headlight_bitmap;
|
||||
uint8_t shift_r();
|
||||
uint8_t shift_rev_r();
|
||||
|
@ -52,12 +52,12 @@ private:
|
||||
required_device<screen_device> m_screen;
|
||||
required_device<palette_device> m_palette;
|
||||
|
||||
uint8_t m_sound_latch;
|
||||
uint8_t m_LS74_clr;
|
||||
uint8_t m_LS74_q;
|
||||
uint8_t m_gain_control;
|
||||
emu_timer *m_interrupt_timer;
|
||||
uint8_t m_flipscreen;
|
||||
uint8_t m_sound_latch = 0;
|
||||
uint8_t m_LS74_clr = 0;
|
||||
uint8_t m_LS74_q = 0;
|
||||
uint8_t m_gain_control = 0;
|
||||
emu_timer *m_interrupt_timer = nullptr;
|
||||
uint8_t m_flipscreen = 0;
|
||||
std::unique_ptr<uint32_t[]> m_prom_tab;
|
||||
bitmap_ind16 m_bitmap;
|
||||
|
||||
|
@ -40,10 +40,10 @@ private:
|
||||
required_shared_ptr<uint8_t> m_spriteram;
|
||||
required_shared_ptr<uint8_t> m_fgram;
|
||||
|
||||
tilemap_t *m_tx_tilemap;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
int m_sound_cpu_busy;
|
||||
uint32_t m_bg_tile_offset;
|
||||
tilemap_t *m_tx_tilemap = nullptr;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
int m_sound_cpu_busy = 0;
|
||||
uint32_t m_bg_tile_offset = 0;
|
||||
|
||||
uint8_t sound_ack_r();
|
||||
void c600_w(uint8_t data);
|
||||
|
@ -59,16 +59,16 @@ private:
|
||||
required_device<palette_device> m_palette;
|
||||
output_finder<2> m_leds;
|
||||
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
bitmap_ind16 m_sprite_bitmap;
|
||||
|
||||
uint8_t m_scroll;
|
||||
uint8_t m_scroll = 0;
|
||||
|
||||
uint8_t m_main_irq_mask;
|
||||
uint8_t m_sub_irq_mask;
|
||||
uint8_t m_sub2_irq_mask;
|
||||
uint8_t m_main_irq_mask = 0;
|
||||
uint8_t m_sub_irq_mask = 0;
|
||||
uint8_t m_sub2_irq_mask = 0;
|
||||
|
||||
emu_timer *m_namcoio_run_timer[2];
|
||||
emu_timer *m_namcoio_run_timer[2]{};
|
||||
|
||||
DECLARE_WRITE_LINE_MEMBER(int_on_w);
|
||||
DECLARE_WRITE_LINE_MEMBER(int_on_2_w);
|
||||
|
@ -104,19 +104,19 @@ private:
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
|
||||
/* sound state */
|
||||
uint8_t m_last;
|
||||
uint8_t m_portT;
|
||||
const char *m_eabank;
|
||||
uint8_t m_last = 0;
|
||||
uint8_t m_portT = 0;
|
||||
const char *m_eabank = nullptr;
|
||||
|
||||
/* video state */
|
||||
uint8_t m_gfx_bank;
|
||||
uint8_t m_palette_bank;
|
||||
uint16_t m_gfx_scroll;
|
||||
uint8_t m_flip;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
uint8_t m_gfx_bank = 0;
|
||||
uint8_t m_palette_bank = 0;
|
||||
uint16_t m_gfx_scroll = 0;
|
||||
uint8_t m_flip = 0;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
int m_monitor;
|
||||
|
||||
bool m_nmi_mask;
|
||||
bool m_nmi_mask = false;
|
||||
DECLARE_WRITE_LINE_MEMBER(nmi_mask_w);
|
||||
DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
|
||||
DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
|
||||
|
@ -111,7 +111,7 @@ private:
|
||||
required_shared_ptr<uint8_t> m_xscroll;
|
||||
|
||||
/* video-related */
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
|
||||
uint8_t m_scroll_ctrl;
|
||||
uint8_t m_irq_source;
|
||||
@ -126,7 +126,7 @@ private:
|
||||
uint8_t m_packet_write_pos;
|
||||
bool m_packet_reset;
|
||||
|
||||
u8 m_strnskil_slave_irq;
|
||||
u8 m_strnskil_slave_irq = 0;
|
||||
};
|
||||
|
||||
#endif // MAME_INCLUDES_MARKHAM_H
|
||||
|
@ -140,13 +140,13 @@ private:
|
||||
required_device<ram_device> m_ram;
|
||||
required_device<palette_device> m_palette;
|
||||
|
||||
uint32_t m_debug_video;
|
||||
uint32_t m_debug_video = 0;
|
||||
uint8_t m_video_mem[VIDEO_MEM_SIZE];
|
||||
uint8_t m_vram_page;
|
||||
uint8_t m_printer_status;
|
||||
uint8_t m_vram_page = 0;
|
||||
uint8_t m_printer_status = 0;
|
||||
|
||||
double m_x_calibration, m_y_calibration;
|
||||
bool m_ls123_strobe;
|
||||
double m_x_calibration = 0, m_y_calibration = 0;
|
||||
bool m_ls123_strobe = false;
|
||||
double m_ls123_clear_time[4];
|
||||
|
||||
void video_debug(const std::vector<std::string> ¶ms);
|
||||
|
@ -113,12 +113,12 @@ protected:
|
||||
void render_sprites_91464(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int primask, int sprmask, int colormask);
|
||||
void mcr_init(int cpuboard, int vidboard, int ssioboard);
|
||||
|
||||
int8_t m_mcr12_sprite_xoffs_flip;
|
||||
uint8_t m_input_mux;
|
||||
uint8_t m_last_op4;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
int8_t m_mcr12_sprite_xoffs_flip = 0;
|
||||
uint8_t m_input_mux = 0;
|
||||
uint8_t m_last_op4 = 0;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
|
||||
uint8_t m_mcr_cocktail_flip;
|
||||
uint8_t m_mcr_cocktail_flip = 0;
|
||||
|
||||
required_device<z80_device> m_maincpu;
|
||||
optional_shared_ptr<uint8_t> m_spriteram;
|
||||
@ -136,10 +136,10 @@ protected:
|
||||
required_device<palette_device> m_palette;
|
||||
|
||||
private:
|
||||
uint32_t m_mcr_cpu_board;
|
||||
uint32_t m_mcr_sprite_board;
|
||||
uint32_t m_mcr_cpu_board = 0;
|
||||
uint32_t m_mcr_sprite_board = 0;
|
||||
|
||||
int8_t m_mcr12_sprite_xoffs;
|
||||
int8_t m_mcr12_sprite_xoffs = 0;
|
||||
};
|
||||
|
||||
class mcr_dpoker_state : public mcr_state
|
||||
@ -213,9 +213,9 @@ protected:
|
||||
virtual void machine_start() override;
|
||||
|
||||
private:
|
||||
int m_ipu_sio_txda;
|
||||
int m_ipu_sio_txdb;
|
||||
emu_timer *m_ipu_watchdog_timer;
|
||||
int m_ipu_sio_txda = 0;
|
||||
int m_ipu_sio_txdb = 0;
|
||||
emu_timer *m_ipu_watchdog_timer = nullptr;
|
||||
|
||||
required_device<z80_device> m_ipu;
|
||||
required_device<z80sio_device> m_ipu_sio;
|
||||
|
@ -77,12 +77,12 @@ protected:
|
||||
required_device<screen_device> m_screen;
|
||||
output_finder<3> m_lamps;
|
||||
|
||||
uint8_t m_latched_input;
|
||||
uint8_t m_spyhunt_sprite_color_mask;
|
||||
int16_t m_spyhunt_scroll_offset;
|
||||
int16_t m_spyhunt_scrollx;
|
||||
int16_t m_spyhunt_scrolly;
|
||||
tilemap_t *m_alpha_tilemap;
|
||||
uint8_t m_latched_input = 0;
|
||||
uint8_t m_spyhunt_sprite_color_mask = 0;
|
||||
int16_t m_spyhunt_scroll_offset = 0;
|
||||
int16_t m_spyhunt_scrollx = 0;
|
||||
int16_t m_spyhunt_scrolly = 0;
|
||||
tilemap_t *m_alpha_tilemap = nullptr;
|
||||
|
||||
[[maybe_unused]] TILE_GET_INFO_MEMBER(get_bg_tile_info);
|
||||
TILE_GET_INFO_MEMBER(mcrmono_get_bg_tile_info);
|
||||
@ -113,10 +113,10 @@ private:
|
||||
|
||||
required_device<adc0844_device> m_maxrpm_adc;
|
||||
|
||||
uint8_t m_maxrpm_adc_control;
|
||||
uint8_t m_maxrpm_last_shift;
|
||||
int8_t m_maxrpm_p1_shift;
|
||||
int8_t m_maxrpm_p2_shift;
|
||||
uint8_t m_maxrpm_adc_control = 0;
|
||||
uint8_t m_maxrpm_last_shift = 0;
|
||||
int8_t m_maxrpm_p1_shift = 0;
|
||||
int8_t m_maxrpm_p2_shift = 0;
|
||||
};
|
||||
|
||||
class mcrsc_csd_state : public mcr3_state
|
||||
|
@ -69,14 +69,14 @@ private:
|
||||
required_device<screen_device> m_screen;
|
||||
required_device<ptm6840_device> m_ptm;
|
||||
|
||||
uint16_t m_control_word;
|
||||
uint16_t m_control_word = 0;
|
||||
uint8_t m_protection_data[5];
|
||||
attotime m_timing_factor;
|
||||
uint8_t m_sprite_clip;
|
||||
int8_t m_sprite_xoffset;
|
||||
uint8_t m_sprite_clip = 0;
|
||||
int8_t m_sprite_xoffset = 0;
|
||||
timer_expired_delegate m_v493_callback;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_fg_tilemap;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
tilemap_t *m_fg_tilemap = nullptr;
|
||||
void xenophobe_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
|
||||
void blasted_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
|
||||
uint16_t spyhunt2_port_0_r();
|
||||
|
@ -59,19 +59,19 @@ private:
|
||||
optional_shared_ptr<uint8_t> m_spriteram;
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
|
||||
int m_channel;
|
||||
int m_freq1;
|
||||
int m_freq2;
|
||||
uint8_t m_latched_0c01;
|
||||
uint8_t m_latched_0c02;
|
||||
uint8_t m_latched_0c03;
|
||||
uint8_t m_main_sense_state;
|
||||
uint8_t m_audio_sense_state;
|
||||
uint8_t m_0c00;
|
||||
uint8_t m_0c01;
|
||||
uint8_t m_0c02;
|
||||
uint8_t m_0c03;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
int m_channel = 0;
|
||||
int m_freq1 = 0;
|
||||
int m_freq2 = 0;
|
||||
uint8_t m_latched_0c01 = 0;
|
||||
uint8_t m_latched_0c02 = 0;
|
||||
uint8_t m_latched_0c03 = 0;
|
||||
uint8_t m_main_sense_state = 0;
|
||||
uint8_t m_audio_sense_state = 0;
|
||||
uint8_t m_0c00 = 0;
|
||||
uint8_t m_0c01 = 0;
|
||||
uint8_t m_0c02 = 0;
|
||||
uint8_t m_0c03 = 0;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
uint8_t hsync_chain_r();
|
||||
uint8_t vsync_chain_hi_r();
|
||||
uint8_t vsync_chain_lo_r();
|
||||
|
@ -164,9 +164,9 @@ public:
|
||||
m_tmss(*this, "tmss")
|
||||
{ }
|
||||
|
||||
ioport_port *m_io_ctrlr;
|
||||
ioport_port *m_io_pad3b[4];
|
||||
ioport_port *m_io_pad6b[2][4];
|
||||
ioport_port *m_io_ctrlr = nullptr;
|
||||
ioport_port *m_io_pad3b[4]{};
|
||||
ioport_port *m_io_pad6b[2][4]{};
|
||||
|
||||
optional_device<sega_32x_device> m_32x;
|
||||
optional_device<sega_segacd_device> m_segacd;
|
||||
|
@ -55,7 +55,7 @@ private:
|
||||
void puckpkmna_map(address_map &map);
|
||||
|
||||
// bootleg specific
|
||||
int m_aladmdb_mcu_port;
|
||||
int m_aladmdb_mcu_port = 0;
|
||||
|
||||
int m_protcount;
|
||||
};
|
||||
|
@ -73,7 +73,7 @@ public:
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
uint16_t m_a1630a;
|
||||
uint16_t m_a1630a = 0;
|
||||
|
||||
private:
|
||||
uint16_t read_a16300(offs_t offset, uint16_t mem_mask);
|
||||
|
@ -54,27 +54,27 @@ private:
|
||||
required_shared_ptr<uint8_t> m_colorram;
|
||||
|
||||
/* video-related */
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_fg_tilemap;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
tilemap_t *m_fg_tilemap = nullptr;
|
||||
bitmap_ind16 m_helper;
|
||||
bitmap_ind16 m_helper2;
|
||||
bitmap_ind16 m_helper_mask;
|
||||
int m_coll_bit0;
|
||||
int m_coll_bit1;
|
||||
int m_coll_bit2;
|
||||
int m_coll_bit3;
|
||||
int m_coll_bit6;
|
||||
int m_coll_bit0 = 0;
|
||||
int m_coll_bit1 = 0;
|
||||
int m_coll_bit2 = 0;
|
||||
int m_coll_bit3 = 0;
|
||||
int m_coll_bit6 = 0;
|
||||
int m_bg_split;
|
||||
int m_bg_mask;
|
||||
int m_bg_bank;
|
||||
int m_rougien_gfxbank1;
|
||||
int m_rougien_gfxbank2;
|
||||
int m_bg_mask = 0;
|
||||
int m_bg_bank = 0;
|
||||
int m_rougien_gfxbank1 = 0;
|
||||
int m_rougien_gfxbank2 = 0;
|
||||
|
||||
/* sound-related */
|
||||
uint8_t m_adpcm_idle;
|
||||
int m_adpcm_data;
|
||||
uint8_t m_adpcm_trigger;
|
||||
uint8_t m_adpcm_rom_sel;
|
||||
uint8_t m_adpcm_idle = 0;
|
||||
int m_adpcm_data = 0;
|
||||
uint8_t m_adpcm_trigger = 0;
|
||||
uint8_t m_adpcm_rom_sel = 0;
|
||||
bool m_ay8910_enable[2];
|
||||
|
||||
/* devices */
|
||||
@ -87,7 +87,7 @@ private:
|
||||
required_device<palette_device> m_palette;
|
||||
required_device_array<ls259_device, 2> m_latch;
|
||||
|
||||
uint8_t m_nmi_mask;
|
||||
uint8_t m_nmi_mask = 0;
|
||||
void mermaid_ay8910_write_port_w(uint8_t data);
|
||||
void mermaid_ay8910_control_port_w(uint8_t data);
|
||||
DECLARE_WRITE_LINE_MEMBER(ay1_enable_w);
|
||||
|
@ -36,8 +36,8 @@ private:
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
|
||||
/* video-related */
|
||||
tilemap_t *m_bg_tilemap;
|
||||
int m_palettebank;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
int m_palettebank = 0;
|
||||
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
@ -45,7 +45,7 @@ private:
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
|
||||
uint8_t m_irq_mask;
|
||||
uint8_t m_irq_mask = 0;
|
||||
uint8_t mikie_sh_timer_r();
|
||||
DECLARE_WRITE_LINE_MEMBER(sh_irqtrigger_w);
|
||||
DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
|
||||
|
@ -40,8 +40,8 @@ public:
|
||||
void init_mikro80();
|
||||
|
||||
private:
|
||||
u8 m_keyboard_mask;
|
||||
u8 m_key_mask;
|
||||
u8 m_keyboard_mask = 0;
|
||||
u8 m_key_mask = 0;
|
||||
void sound_w(u8 data);
|
||||
u8 portb_r();
|
||||
u8 portc_r();
|
||||
|
@ -341,10 +341,10 @@ protected:
|
||||
required_region_ptr<u32> m_copro_tgp_tables;
|
||||
required_device<address_map_bank_device> m_copro_tgp_bank;
|
||||
|
||||
u32 m_copro_tgp_bank_reg;
|
||||
u32 m_copro_sincos_base;
|
||||
u32 m_copro_inv_base;
|
||||
u32 m_copro_isqrt_base;
|
||||
u32 m_copro_tgp_bank_reg = 0;
|
||||
u32 m_copro_sincos_base = 0;
|
||||
u32 m_copro_inv_base = 0;
|
||||
u32 m_copro_isqrt_base = 0;
|
||||
u32 m_copro_atan_base[4];
|
||||
|
||||
void copro_function_port_w(offs_t offset, u32 data);
|
||||
@ -423,7 +423,7 @@ public:
|
||||
void model2o_maxx_mem(address_map &map);
|
||||
|
||||
private:
|
||||
int m_maxxstate;
|
||||
int m_maxxstate = 0;
|
||||
};
|
||||
|
||||
/*****************************
|
||||
@ -445,7 +445,7 @@ protected:
|
||||
virtual void machine_reset() override;
|
||||
|
||||
private:
|
||||
int m_gtx_state;
|
||||
int m_gtx_state = 0;
|
||||
|
||||
u8 gtx_r(offs_t offset);
|
||||
void model2o_gtx_mem(address_map &map);
|
||||
|
@ -261,48 +261,48 @@ private:
|
||||
uint64_t m_ir;
|
||||
uint8_t m_id_data[32];
|
||||
int32_t m_id_size;
|
||||
int m_tdo;
|
||||
uint16_t m_layer_priority;
|
||||
uint32_t m_layer_modulate_r;
|
||||
uint32_t m_layer_modulate_g;
|
||||
uint32_t m_layer_modulate_b;
|
||||
uint32_t m_layer_modulate1;
|
||||
uint32_t m_layer_modulate2;
|
||||
int m_tdo = 0;
|
||||
uint16_t m_layer_priority = 0;
|
||||
uint32_t m_layer_modulate_r = 0;
|
||||
uint32_t m_layer_modulate_g = 0;
|
||||
uint32_t m_layer_modulate_b = 0;
|
||||
uint32_t m_layer_modulate1 = 0;
|
||||
uint32_t m_layer_modulate2 = 0;
|
||||
uint64_t m_layer_scroll[2];
|
||||
std::unique_ptr<uint64_t[]> m_m3_char_ram;
|
||||
std::unique_ptr<uint64_t[]> m_m3_tile_ram;
|
||||
std::unique_ptr<uint32_t[]> m_texture_fifo;
|
||||
int m_texture_fifo_pos;
|
||||
int m_texture_fifo_pos = 0;
|
||||
std::unique_ptr<uint16_t[]> m_texture_ram[2];
|
||||
std::unique_ptr<uint32_t[]> m_display_list_ram;
|
||||
std::unique_ptr<uint32_t[]> m_culling_ram;
|
||||
std::unique_ptr<uint32_t[]> m_polygon_ram;
|
||||
int m_real3d_display_list;
|
||||
int m_real3d_display_list = 0;
|
||||
rectangle m_clip3d;
|
||||
rectangle *m_screen_clip;
|
||||
rectangle *m_screen_clip = nullptr;
|
||||
VECTOR3 m_parallel_light;
|
||||
float m_parallel_light_intensity;
|
||||
float m_ambient_light_intensity;
|
||||
uint64_t m_vid_reg0;
|
||||
int m_matrix_stack_ptr;
|
||||
int m_list_depth;
|
||||
float m_parallel_light_intensity = 0;
|
||||
float m_ambient_light_intensity = 0;
|
||||
uint64_t m_vid_reg0 = 0;
|
||||
int m_matrix_stack_ptr = 0;
|
||||
int m_list_depth = 0;
|
||||
std::unique_ptr<MATRIX[]> m_matrix_stack;
|
||||
MATRIX m_coordinate_system;
|
||||
MATRIX m_projection_matrix;
|
||||
float m_viewport_x;
|
||||
float m_viewport_y;
|
||||
float m_viewport_width;
|
||||
float m_viewport_height;
|
||||
float m_viewport_near;
|
||||
float m_viewport_far;
|
||||
uint32_t m_matrix_base_address;
|
||||
cached_texture *m_texcache[2][1024/32][2048/32];
|
||||
float m_viewport_x = 0;
|
||||
float m_viewport_y = 0;
|
||||
float m_viewport_width = 0;
|
||||
float m_viewport_height = 0;
|
||||
float m_viewport_near = 0;
|
||||
float m_viewport_far = 0;
|
||||
uint32_t m_matrix_base_address = 0;
|
||||
cached_texture *m_texcache[2][1024/32][2048/32]{};
|
||||
|
||||
std::unique_ptr<model3_renderer> m_renderer;
|
||||
std::unique_ptr<m3_triangle[]> m_tri_buffer;
|
||||
std::unique_ptr<m3_triangle[]> m_tri_alpha_buffer;
|
||||
int m_tri_buffer_ptr;
|
||||
int m_tri_alpha_buffer_ptr;
|
||||
int m_tri_buffer_ptr = 0;
|
||||
int m_tri_alpha_buffer_ptr = 0;
|
||||
int m_viewport_tri_index[4];
|
||||
int m_viewport_tri_alpha_index[4];
|
||||
|
||||
|
@ -54,15 +54,15 @@ private:
|
||||
required_shared_ptr<uint16_t> m_spriteram;
|
||||
|
||||
/* video-related */
|
||||
int m_sprite_colorbase;
|
||||
int m_sprite_colorbase = 0;
|
||||
int m_layer_colorbase[4];
|
||||
int m_layerpri[3];
|
||||
int m_alpha_enabled;
|
||||
uint16_t m_zmask;
|
||||
int m_alpha_enabled = 0;
|
||||
uint16_t m_zmask = 0;
|
||||
|
||||
/* misc */
|
||||
uint16_t m_protram[16];
|
||||
uint16_t m_cur_control2;
|
||||
uint16_t m_cur_control2 = 0;
|
||||
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
@ -78,7 +78,7 @@ private:
|
||||
required_device<screen_device> m_screen;
|
||||
optional_device<k054321_device> m_k054321;
|
||||
|
||||
emu_timer *m_dmaend_timer;
|
||||
emu_timer *m_dmaend_timer = nullptr;
|
||||
uint16_t control2_r();
|
||||
void control2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
|
||||
void sound_irq_w(uint16_t data);
|
||||
|
@ -41,11 +41,11 @@ private:
|
||||
required_shared_ptr<uint8_t> m_bgvideoram;
|
||||
|
||||
/* video-related */
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_fg_tilemap;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
tilemap_t *m_fg_tilemap = nullptr;
|
||||
|
||||
/* misc */
|
||||
int m_prot_val;
|
||||
int m_prot_val = 0;
|
||||
|
||||
void protection_w(uint8_t data);
|
||||
uint8_t protection_r();
|
||||
|
@ -42,7 +42,7 @@ private:
|
||||
required_shared_ptr<uint8_t> m_spriteram;
|
||||
|
||||
/* misc */
|
||||
bool m_nmi_enable;
|
||||
bool m_nmi_enable = false;
|
||||
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
|
@ -35,19 +35,19 @@ private:
|
||||
virtual void machine_start() override;
|
||||
void mpu5_map(address_map &map);
|
||||
|
||||
uint32_t* m_cpuregion;
|
||||
uint32_t* m_cpuregion = nullptr;
|
||||
std::unique_ptr<uint32_t[]> m_mainram;
|
||||
|
||||
uint8_t m_led_strobe_temp;
|
||||
uint8_t m_led_strobe;
|
||||
uint8_t m_pic_clk;
|
||||
bool m_pic_transfer_in_progress;
|
||||
uint8_t m_pic_bit1;
|
||||
uint8_t m_pic_data;
|
||||
uint8_t m_pic_clocked_bits;
|
||||
uint8_t m_pic_stored_input;
|
||||
uint8_t m_pic_output_bit;
|
||||
uint8_t m_input_strobe;
|
||||
uint8_t m_led_strobe_temp = 0;
|
||||
uint8_t m_led_strobe = 0;
|
||||
uint8_t m_pic_clk = 0;
|
||||
bool m_pic_transfer_in_progress = false;
|
||||
uint8_t m_pic_bit1 = 0;
|
||||
uint8_t m_pic_data = 0;
|
||||
uint8_t m_pic_clocked_bits = 0;
|
||||
uint8_t m_pic_stored_input = 0;
|
||||
uint8_t m_pic_output_bit = 0;
|
||||
uint8_t m_input_strobe = 0;
|
||||
|
||||
// devices
|
||||
required_device<m68340_cpu_device> m_maincpu;
|
||||
|
@ -37,7 +37,7 @@ protected:
|
||||
virtual void protection_w(uint8_t data);
|
||||
virtual uint8_t protection_r();
|
||||
|
||||
uint8_t m_pal_u001;
|
||||
uint8_t m_pal_u001 = 0;
|
||||
|
||||
private:
|
||||
// memory pointers
|
||||
@ -52,9 +52,9 @@ private:
|
||||
void main_map(address_map &map);
|
||||
|
||||
// video-related
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_fg_tilemap;
|
||||
int m_flipscreen;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
tilemap_t *m_fg_tilemap = nullptr;
|
||||
int m_flipscreen = 0;
|
||||
|
||||
void bgvideoram_w(offs_t offset, uint8_t data);
|
||||
void fgvideoram_w(offs_t offset, uint8_t data);
|
||||
|
@ -38,7 +38,7 @@ private:
|
||||
required_shared_ptr<uint8_t> m_spriteram;
|
||||
|
||||
/* video-related */
|
||||
int m_gfx_bank;
|
||||
int m_gfx_bank = 0;
|
||||
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
|
@ -54,8 +54,8 @@ protected:
|
||||
void base_sound_map(address_map &map);
|
||||
|
||||
private:
|
||||
u32 m_to_main;
|
||||
u16 m_irqreq;
|
||||
u32 m_to_main = 0;
|
||||
u16 m_irqreq = 0;
|
||||
};
|
||||
|
||||
class ms32_state : public ms32_base_state
|
||||
|
@ -49,27 +49,27 @@ private:
|
||||
required_shared_ptr<uint8_t> m_videoram2;
|
||||
|
||||
/* video-related */
|
||||
bitmap_ind16 *m_tmp_bitmap1;
|
||||
bitmap_ind16 *m_tmp_bitmap2;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_fg_tilemap;
|
||||
tilemap_t *m_bg2_tilemap;
|
||||
int m_bg2_textbank;
|
||||
bitmap_ind16 *m_tmp_bitmap1 = nullptr;
|
||||
bitmap_ind16 *m_tmp_bitmap2 = nullptr;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
tilemap_t *m_fg_tilemap = nullptr;
|
||||
tilemap_t *m_bg2_tilemap = nullptr;
|
||||
int m_bg2_textbank = 0;
|
||||
|
||||
/* sound-related */
|
||||
int m_sound_nmi_enable;
|
||||
int m_pending_nmi;
|
||||
int m_sound_nmi_enable = 0;
|
||||
int m_pending_nmi = 0;
|
||||
|
||||
/* fake mcu (in msisaac.c) */
|
||||
#ifndef USE_MCU
|
||||
uint8_t m_mcu_val;
|
||||
uint8_t m_direction;
|
||||
uint8_t m_mcu_val = 0;
|
||||
uint8_t m_direction = 0;
|
||||
#endif
|
||||
|
||||
uint8_t m_snd_ctrl0;
|
||||
uint8_t m_snd_ctrl1;
|
||||
uint8_t m_snd_ctrl2;
|
||||
uint8_t m_snd_ctrl3;
|
||||
uint8_t m_snd_ctrl0 = 0;
|
||||
uint8_t m_snd_ctrl1 = 0;
|
||||
uint8_t m_snd_ctrl2 = 0;
|
||||
uint8_t m_snd_ctrl3 = 0;
|
||||
|
||||
/* devices */
|
||||
required_device<cpu_device> m_audiocpu;
|
||||
|
@ -76,22 +76,22 @@ private:
|
||||
memory_bank_creator m_rommap_bank3;
|
||||
|
||||
/* keyboard state */
|
||||
uint8_t m_key_sense;
|
||||
uint8_t m_key_sense = 0;
|
||||
|
||||
/* video state */
|
||||
uint8_t *m_video_ram;
|
||||
uint8_t *m_attr_ram;
|
||||
uint8_t *m_video_ram = nullptr;
|
||||
uint8_t *m_attr_ram = nullptr;
|
||||
|
||||
/* sound state */
|
||||
uint8_t m_sound_latch;
|
||||
uint8_t m_sound_latch = 0;
|
||||
|
||||
/* timers */
|
||||
device_t *m_cassette_timer;
|
||||
device_t *m_cassette_timer = nullptr;
|
||||
|
||||
int m_centronics_busy;
|
||||
int m_centronics_fault;
|
||||
int m_centronics_perror;
|
||||
int m_centronics_select;
|
||||
int m_centronics_busy = 0;
|
||||
int m_centronics_fault = 0;
|
||||
int m_centronics_perror = 0;
|
||||
int m_centronics_select = 0;
|
||||
|
||||
void mtx_subpage_w(uint8_t data);
|
||||
void mtx_bankswitch_w(uint8_t data);
|
||||
|
@ -30,8 +30,8 @@ private:
|
||||
required_shared_ptr<uint16_t> m_regs2;
|
||||
required_shared_ptr<uint16_t> m_spriteram;
|
||||
|
||||
tilemap_t *m_tilemap1;
|
||||
tilemap_t *m_tilemap2;
|
||||
tilemap_t *m_tilemap1 = nullptr;
|
||||
tilemap_t *m_tilemap2 = nullptr;
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<cpu_device> m_audiocpu;
|
||||
|
@ -89,16 +89,16 @@ private:
|
||||
|
||||
/* Video related */
|
||||
|
||||
int m_disp_enable;
|
||||
int m_xor_paltype;
|
||||
int m_xor_palette;
|
||||
int m_disp_enable = 0;
|
||||
int m_xor_paltype = 0;
|
||||
int m_xor_palette = 0;
|
||||
|
||||
tilemap_t *m_tilemap;
|
||||
tilemap_t *m_reel_tilemap;
|
||||
tilemap_t *m_tilemap = nullptr;
|
||||
tilemap_t *m_reel_tilemap = nullptr;
|
||||
|
||||
/* Misc related */
|
||||
|
||||
uint8_t m_rambk;
|
||||
uint8_t m_rambk = 0;
|
||||
|
||||
uint8_t m_vid[igrosoft_gamble_VIDRAM_SIZE];
|
||||
required_device<cpu_device> m_maincpu;
|
||||
|
@ -77,11 +77,11 @@ private:
|
||||
|
||||
/* video-related */
|
||||
std::unique_ptr<bitmap_ind16> m_tmpbitmap;
|
||||
int m_palette_bank;
|
||||
int m_flipscreen;
|
||||
int m_palette_bank = 0;
|
||||
int m_flipscreen = 0;
|
||||
|
||||
/* misc */
|
||||
int m_nmi_enable;
|
||||
int m_nmi_enable = 0;
|
||||
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
|
@ -107,16 +107,16 @@ protected:
|
||||
required_device<screen_device> m_screen;
|
||||
|
||||
// misc game specific
|
||||
uint8_t m_flip_screen;
|
||||
uint8_t m_flip_screen = 0;
|
||||
|
||||
private:
|
||||
// misc game specific
|
||||
uint16_t m_phantom2_cloud_counter;
|
||||
uint8_t m_maze_tone_timing_state; // output of IC C1, pin 5
|
||||
uint16_t m_phantom2_cloud_counter = 0;
|
||||
uint8_t m_maze_tone_timing_state = 0; // output of IC C1, pin 5
|
||||
|
||||
// timers
|
||||
emu_timer *m_interrupt_timer;
|
||||
emu_timer *m_maze_tone_timer;
|
||||
emu_timer *m_interrupt_timer = nullptr;
|
||||
emu_timer *m_maze_tone_timer = nullptr;
|
||||
|
||||
attotime m_interrupt_time;
|
||||
|
||||
@ -258,7 +258,7 @@ private:
|
||||
void gmissile_io_map(address_map &map);
|
||||
void m4_io_map(address_map &map);
|
||||
|
||||
u8 m_rev_shift_res;
|
||||
u8 m_rev_shift_res = 0;
|
||||
};
|
||||
|
||||
|
||||
@ -291,7 +291,7 @@ private:
|
||||
|
||||
required_ioport_array<2> m_gun_port;
|
||||
required_ioport_array<2> m_dip_sw_0_1;
|
||||
u8 m_controller_select;
|
||||
u8 m_controller_select = 0;
|
||||
};
|
||||
|
||||
|
||||
@ -346,7 +346,7 @@ private:
|
||||
void spacwalk_io_map(address_map &map);
|
||||
|
||||
required_ioport_array<2> m_controllers;
|
||||
u8 m_controller_select;
|
||||
u8 m_controller_select = 0;
|
||||
};
|
||||
|
||||
|
||||
@ -372,11 +372,11 @@ private:
|
||||
void io_map(address_map &map);
|
||||
|
||||
required_device<spcenctr_audio_device> m_soundboard;
|
||||
u8 m_trench_width;
|
||||
u8 m_trench_center;
|
||||
u8 m_trench_width = 0;
|
||||
u8 m_trench_center = 0;
|
||||
u8 m_trench_slope[16]; // 16x4 bit RAM
|
||||
u8 m_bright_control;
|
||||
u8 m_brightness;
|
||||
u8 m_bright_control = 0;
|
||||
u8 m_brightness = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -103,33 +103,33 @@ private:
|
||||
uint8_t m_pal_select;
|
||||
uint16_t m_cg_vs;
|
||||
uint16_t m_cg_ve;
|
||||
uint16_t m_cg_hs;
|
||||
uint16_t m_cg_he;
|
||||
int16_t m_tv_vs;
|
||||
int16_t m_tv_ve;
|
||||
int16_t m_tv_hs;
|
||||
int16_t m_tv_he;
|
||||
uint16_t m_cg_hs = 0;
|
||||
uint16_t m_cg_he = 0;
|
||||
int16_t m_tv_vs = 0;
|
||||
int16_t m_tv_ve = 0;
|
||||
int16_t m_tv_hs = 0;
|
||||
int16_t m_tv_he = 0;
|
||||
uint8_t m_cg_latch[4];
|
||||
uint8_t m_cg_reg_index;
|
||||
uint8_t m_cg_reg_index = 0;
|
||||
uint8_t m_cg_reg[0x20];
|
||||
uint8_t m_clut16[0x10];
|
||||
uint16_t m_clut256[0x100];
|
||||
uint8_t m_cg_mask;
|
||||
int m_scr_x_size;
|
||||
int m_scr_y_size;
|
||||
uint8_t m_cg_clear_flag;
|
||||
uint32_t m_rom_index;
|
||||
uint8_t m_hrom_index;
|
||||
uint8_t m_lrom_index;
|
||||
struct { uint8_t r,g,b; } m_pal[16];
|
||||
uint8_t m_joy_mode;
|
||||
uint16_t m_kanji_index;
|
||||
uint32_t m_emm_offset;
|
||||
uint8_t m_old_portc;
|
||||
uint8_t m_prev_col_val;
|
||||
uint8_t m_pio_latchb;
|
||||
uint8_t m_ym_porta;
|
||||
uint8_t m_screen_enable;
|
||||
uint8_t m_cg_mask = 0;
|
||||
int m_scr_x_size = 0;
|
||||
int m_scr_y_size = 0;
|
||||
uint8_t m_cg_clear_flag = 0;
|
||||
uint32_t m_rom_index = 0;
|
||||
uint8_t m_hrom_index = 0;
|
||||
uint8_t m_lrom_index = 0;
|
||||
struct { uint8_t r = 0, g = 0, b = 0; } m_pal[16];
|
||||
uint8_t m_joy_mode = 0;
|
||||
uint16_t m_kanji_index = 0;
|
||||
uint32_t m_emm_offset = 0;
|
||||
uint8_t m_old_portc = 0;
|
||||
uint8_t m_prev_col_val = 0;
|
||||
uint8_t m_pio_latchb = 0;
|
||||
uint8_t m_ym_porta = 0;
|
||||
uint8_t m_screen_enable = 0;
|
||||
uint8_t mz2500_bank_addr_r();
|
||||
void mz2500_bank_addr_w(uint8_t data);
|
||||
uint8_t mz2500_bank_data_r();
|
||||
|
@ -101,37 +101,37 @@ private:
|
||||
void mz800_io(address_map &map);
|
||||
void mz800_mem(address_map &map);
|
||||
|
||||
int m_mz700; /* 1 if running on an mz700 */
|
||||
int m_mz700 = 0; /* 1 if running on an mz700 */
|
||||
|
||||
int m_cursor_bit;
|
||||
int m_other_timer;
|
||||
int m_cursor_bit = 0;
|
||||
int m_other_timer = 0;
|
||||
|
||||
int m_intmsk; /* PPI8255 pin PC2 */
|
||||
int m_intmsk = 0; /* PPI8255 pin PC2 */
|
||||
|
||||
int m_mz700_ram_lock; /* 1 if ram lock is active */
|
||||
int m_mz700_ram_vram; /* 1 if vram is banked in */
|
||||
int m_mz700_ram_lock = 0; /* 1 if ram lock is active */
|
||||
int m_mz700_ram_vram = 0; /* 1 if vram is banked in */
|
||||
|
||||
/* mz800 specific */
|
||||
std::unique_ptr<uint8_t[]> m_cgram;
|
||||
uint8_t *m_p_chargen;
|
||||
uint8_t *m_p_chargen = nullptr;
|
||||
|
||||
int m_mz700_mode; /* 1 if in mz700 mode */
|
||||
int m_mz800_ram_lock; /* 1 if lock is active */
|
||||
int m_mz800_ram_monitor; /* 1 if monitor rom banked in */
|
||||
int m_mz700_mode = 0; /* 1 if in mz700 mode */
|
||||
int m_mz800_ram_lock = 0; /* 1 if lock is active */
|
||||
int m_mz800_ram_monitor = 0; /* 1 if monitor rom banked in */
|
||||
|
||||
int m_hires_mode; /* 1 if in 640x200 mode */
|
||||
int m_screennum; /* screen designation */
|
||||
int m_hires_mode = 0; /* 1 if in 640x200 mode */
|
||||
int m_screennum = 0; /* screen designation */
|
||||
|
||||
int m_centronics_busy;
|
||||
int m_centronics_perror;
|
||||
int m_centronics_busy = 0;
|
||||
int m_centronics_perror = 0;
|
||||
|
||||
uint8_t *m_colorram;
|
||||
uint8_t *m_colorram = nullptr;
|
||||
std::unique_ptr<uint8_t[]> m_videoram;
|
||||
uint8_t m_speaker_level;
|
||||
uint8_t m_prev_state;
|
||||
uint16_t m_mz800_ramaddr;
|
||||
uint8_t m_speaker_level = 0;
|
||||
uint8_t m_prev_state = 0;
|
||||
uint16_t m_mz800_ramaddr = 0;
|
||||
uint8_t m_mz800_palette[4];
|
||||
uint8_t m_mz800_palette_bank;
|
||||
uint8_t m_mz800_palette_bank = 0;
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<speaker_sound_device> m_speaker;
|
||||
|
@ -54,12 +54,12 @@ private:
|
||||
|
||||
void mz80k_io(address_map &map);
|
||||
void mz80k_mem(address_map &map);
|
||||
bool m_mz80k_vertical;
|
||||
bool m_mz80k_tempo_strobe;
|
||||
uint8_t m_speaker_level;
|
||||
bool m_prev_state;
|
||||
uint8_t m_mz80k_cursor_cnt;
|
||||
uint8_t m_mz80k_keyboard_line;
|
||||
bool m_mz80k_vertical = false;
|
||||
bool m_mz80k_tempo_strobe = false;
|
||||
uint8_t m_speaker_level = 0;
|
||||
bool m_prev_state = false;
|
||||
uint8_t m_mz80k_cursor_cnt = 0;
|
||||
uint8_t m_mz80k_keyboard_line = 0;
|
||||
virtual void machine_reset() override;
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<pit8253_device> m_pit;
|
||||
|
Loading…
Reference in New Issue
Block a user