mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
cleanups (nw)
This commit is contained in:
parent
a8ef53fa51
commit
c6d27c753f
@ -532,7 +532,7 @@ void a78_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "a78_rom";
|
||||
const char *slot_string;
|
||||
dynamic_buffer head(128);
|
||||
int type = A78_TYPE0, mapper;
|
||||
|
||||
|
@ -99,7 +99,6 @@ public:
|
||||
virtual bool call_softlist_load(software_list_device &swlist, const char *swname, const rom_entry *start_entry) override;
|
||||
|
||||
int get_cart_type() { return m_type; };
|
||||
int identify_cart_type(UINT8 *ROM, UINT32 len);
|
||||
bool has_cart() { return m_cart != nullptr; }
|
||||
|
||||
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }
|
||||
|
@ -410,7 +410,7 @@ void a800_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "a800_8k";
|
||||
const char *slot_string;
|
||||
dynamic_buffer head(0x10);
|
||||
UINT32 len = core_fsize(m_file);
|
||||
int type = A800_8K;
|
||||
@ -447,7 +447,7 @@ void a5200_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "a5200";
|
||||
const char *slot_string;
|
||||
dynamic_buffer head(0x10);
|
||||
UINT32 len = core_fsize(m_file);
|
||||
int type = A5200_8K;
|
||||
@ -480,7 +480,7 @@ void xegs_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "xegs";
|
||||
const char *slot_string;
|
||||
dynamic_buffer head(0x10);
|
||||
UINT32 len = core_fsize(m_file);
|
||||
int type = A800_8K;
|
||||
|
@ -90,7 +90,7 @@ bool adam_expansion_slot_device::call_load()
|
||||
{
|
||||
if (m_card)
|
||||
{
|
||||
size_t size = 0;
|
||||
size_t size;
|
||||
|
||||
if (software_entry() == nullptr)
|
||||
{
|
||||
|
@ -220,7 +220,7 @@ WRITE_LINE_MEMBER( buddha_device::ide_1_interrupt_w)
|
||||
|
||||
READ16_MEMBER( buddha_device::ide_0_interrupt_r )
|
||||
{
|
||||
UINT16 data = 0xffff;
|
||||
UINT16 data;
|
||||
|
||||
data = m_ide_0_interrupt << 15;
|
||||
|
||||
@ -234,7 +234,7 @@ READ16_MEMBER( buddha_device::ide_0_interrupt_r )
|
||||
|
||||
READ16_MEMBER( buddha_device::ide_1_interrupt_r )
|
||||
{
|
||||
UINT16 data = 0xffff;
|
||||
UINT16 data;
|
||||
|
||||
data = m_ide_1_interrupt << 15;
|
||||
|
||||
@ -255,7 +255,7 @@ WRITE16_MEMBER( buddha_device::ide_interrupt_enable_w )
|
||||
|
||||
READ16_MEMBER( buddha_device::ide_0_cs0_r )
|
||||
{
|
||||
UINT16 data = 0xffff;
|
||||
UINT16 data;
|
||||
|
||||
mem_mask = (mem_mask << 8) | (mem_mask >> 8);
|
||||
data = m_ata_0->read_cs0(space, (offset >> 1) & 0x07, mem_mask);
|
||||
@ -279,7 +279,7 @@ WRITE16_MEMBER( buddha_device::ide_0_cs0_w )
|
||||
|
||||
READ16_MEMBER( buddha_device::ide_0_cs1_r )
|
||||
{
|
||||
UINT16 data = 0xffff;
|
||||
UINT16 data;
|
||||
|
||||
mem_mask = (mem_mask << 8) | (mem_mask >> 8);
|
||||
data = m_ata_0->read_cs1(space, (offset >> 1) & 0x07, mem_mask);
|
||||
@ -303,7 +303,7 @@ WRITE16_MEMBER( buddha_device::ide_0_cs1_w )
|
||||
|
||||
READ16_MEMBER( buddha_device::ide_1_cs0_r )
|
||||
{
|
||||
UINT16 data = 0xffff;
|
||||
UINT16 data;
|
||||
|
||||
mem_mask = (mem_mask << 8) | (mem_mask >> 8);
|
||||
data = m_ata_1->read_cs0(space, (offset >> 1) & 0x07, mem_mask);
|
||||
@ -327,7 +327,7 @@ WRITE16_MEMBER( buddha_device::ide_1_cs0_w )
|
||||
|
||||
READ16_MEMBER( buddha_device::ide_1_cs1_r )
|
||||
{
|
||||
UINT16 data = 0xffff;
|
||||
UINT16 data;
|
||||
|
||||
mem_mask = (mem_mask << 8) | (mem_mask >> 8);
|
||||
data = m_ata_1->read_cs1(space, (offset >> 1) & 0x07, mem_mask);
|
||||
|
@ -225,7 +225,7 @@ void apf_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "std";
|
||||
const char *slot_string;
|
||||
UINT32 size = core_fsize(m_file);
|
||||
int type = APF_STD;
|
||||
|
||||
|
@ -202,7 +202,7 @@ void astrocade_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "rom";
|
||||
const char *slot_string;
|
||||
UINT32 size = core_fsize(m_file);
|
||||
int type = ASTROCADE_STD;
|
||||
|
||||
|
@ -30,7 +30,6 @@ public:
|
||||
virtual DECLARE_READ8_MEMBER(read_rom) { return 0xff; }
|
||||
|
||||
void rom_alloc(UINT32 size, const char *tag);
|
||||
void ram_alloc(UINT32 size);
|
||||
UINT8* get_rom_base() { return m_rom; }
|
||||
UINT32 get_rom_size() { return m_rom_size; }
|
||||
|
||||
|
@ -117,7 +117,7 @@ bool c64_expansion_slot_device::call_load()
|
||||
{
|
||||
if (m_card)
|
||||
{
|
||||
size_t size = 0;
|
||||
size_t size;
|
||||
|
||||
if (software_entry() == nullptr)
|
||||
{
|
||||
|
@ -51,8 +51,6 @@ protected:
|
||||
|
||||
private:
|
||||
required_device<centronics_device> m_centronics;
|
||||
|
||||
void update_output();
|
||||
};
|
||||
|
||||
|
||||
|
@ -40,8 +40,6 @@ public:
|
||||
DECLARE_WRITE8_MEMBER( tpi_pa_w );
|
||||
DECLARE_READ8_MEMBER( tpi_pb_r );
|
||||
DECLARE_WRITE8_MEMBER( tpi_pb_w );
|
||||
DECLARE_READ8_MEMBER( tpi_pc_r );
|
||||
DECLARE_WRITE8_MEMBER( tpi_pc_w );
|
||||
DECLARE_WRITE_LINE_MEMBER( tpi_ca_w );
|
||||
DECLARE_WRITE_LINE_MEMBER( tpi_cb_w );
|
||||
|
||||
|
@ -103,7 +103,7 @@ void cbm2_expansion_slot_device::device_reset()
|
||||
|
||||
bool cbm2_expansion_slot_device::call_load()
|
||||
{
|
||||
size_t size = 0;
|
||||
size_t size;
|
||||
|
||||
if (m_card)
|
||||
{
|
||||
|
@ -28,8 +28,7 @@ class cbm2_graphic_cartridge_device : public device_t,
|
||||
public:
|
||||
// construction/destruction
|
||||
cbm2_graphic_cartridge_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
|
||||
cbm2_graphic_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
|
||||
|
||||
// optional information overrides
|
||||
virtual const rom_entry *device_rom_region() const override;
|
||||
|
||||
|
@ -590,7 +590,7 @@ READ8_MEMBER( c1541_base_t::via0_pb_r )
|
||||
|
||||
*/
|
||||
|
||||
UINT8 data = 0;
|
||||
UINT8 data;
|
||||
|
||||
// data in
|
||||
data = !m_bus->data_r() && !m_ga->atn_r();
|
||||
|
@ -303,7 +303,7 @@ READ8_MEMBER( c1571_t::via0_pb_r )
|
||||
|
||||
*/
|
||||
|
||||
UINT8 data = 0;
|
||||
UINT8 data;
|
||||
|
||||
// data in
|
||||
data = !m_bus->data_r();
|
||||
|
@ -73,8 +73,6 @@ public:
|
||||
|
||||
DECLARE_WRITE_LINE_MEMBER( byte_w );
|
||||
|
||||
DECLARE_WRITE_LINE_MEMBER( wpt_w );
|
||||
|
||||
DECLARE_FLOPPY_FORMATS( floppy_formats );
|
||||
|
||||
void wpt_callback(floppy_image_device *floppy, int state);
|
||||
|
@ -192,7 +192,7 @@ READ8_MEMBER( c1581_t::cia_pb_r )
|
||||
|
||||
*/
|
||||
|
||||
UINT8 data = 0;
|
||||
UINT8 data;
|
||||
|
||||
// data in
|
||||
data = !m_bus->data_r();
|
||||
|
@ -30,8 +30,7 @@ class epson_ex800_t : public device_t,
|
||||
public:
|
||||
// construction/destruction
|
||||
epson_ex800_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
epson_ex800_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
|
||||
|
||||
|
||||
// optional information overrides
|
||||
virtual const rom_entry *device_rom_region() const override;
|
||||
virtual machine_config_constructor device_mconfig_additions() const override;
|
||||
|
@ -50,8 +50,6 @@ protected:
|
||||
virtual void device_reset() override;
|
||||
|
||||
private:
|
||||
void update_irq();
|
||||
|
||||
required_device<fd1793_t> m_fdc;
|
||||
required_device<floppy_connector> m_floppy0;
|
||||
required_device<floppy_connector> m_floppy1;
|
||||
|
@ -221,7 +221,7 @@ void channelf_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "chess";
|
||||
const char *slot_string;
|
||||
UINT32 len = core_fsize(m_file);
|
||||
int type;
|
||||
|
||||
|
@ -266,7 +266,7 @@ void coco_fdc_device::update_lines()
|
||||
void coco_fdc_device::dskreg_w(UINT8 data)
|
||||
{
|
||||
UINT8 drive = 0;
|
||||
UINT8 head = 0;
|
||||
UINT8 head;
|
||||
|
||||
if (LOG_FDC)
|
||||
{
|
||||
|
@ -160,7 +160,7 @@ WRITE8_MEMBER(cococart_slot_device::write)
|
||||
|
||||
static const char *line_value_string(cococart_line_value value)
|
||||
{
|
||||
const char *s = nullptr;
|
||||
const char *s;
|
||||
switch(value)
|
||||
{
|
||||
case COCOCART_LINE_VALUE_CLEAR:
|
||||
@ -326,7 +326,7 @@ bool cococart_slot_device::call_load()
|
||||
{
|
||||
if (m_cart)
|
||||
{
|
||||
offs_t read_length = 0;
|
||||
offs_t read_length;
|
||||
if (software_entry() == nullptr)
|
||||
{
|
||||
read_length = fread(m_cart->get_cart_base(), 0x8000);
|
||||
|
@ -233,7 +233,7 @@ void crvision_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "crv_rom4k";
|
||||
const char *slot_string;
|
||||
UINT32 size = core_fsize(m_file);
|
||||
int type = CRV_4K;
|
||||
|
||||
|
@ -482,7 +482,7 @@ void e01_device::device_timer(emu_timer &timer, device_timer_id id, int param, v
|
||||
|
||||
READ8_MEMBER( e01_device::read )
|
||||
{
|
||||
UINT8 data = 0;
|
||||
UINT8 data;
|
||||
|
||||
if (m_ram_en)
|
||||
{
|
||||
|
@ -47,7 +47,6 @@ public:
|
||||
DECLARE_WRITE8_MEMBER( network_irq_enable_w );
|
||||
DECLARE_READ8_MEMBER( hdc_data_r );
|
||||
DECLARE_WRITE8_MEMBER( hdc_data_w );
|
||||
DECLARE_READ8_MEMBER( hdc_status_r );
|
||||
DECLARE_WRITE8_MEMBER( hdc_select_w );
|
||||
DECLARE_WRITE8_MEMBER( hdc_irq_enable_w );
|
||||
DECLARE_READ8_MEMBER( rtc_address_r );
|
||||
|
@ -262,7 +262,7 @@ bool base_gb_cart_slot_device::call_load()
|
||||
{
|
||||
if (m_cart)
|
||||
{
|
||||
UINT32 offset = 0;
|
||||
UINT32 offset;
|
||||
UINT32 len = (software_entry() == nullptr) ? length() : get_software_region_length("rom");
|
||||
UINT8 *ROM;
|
||||
int rambanks = 0;
|
||||
@ -604,7 +604,7 @@ void base_gb_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "rom";
|
||||
const char *slot_string;
|
||||
UINT32 len = core_fsize(m_file), offset = 0;
|
||||
dynamic_buffer rom(len);
|
||||
int type;
|
||||
@ -793,7 +793,7 @@ void base_gb_cart_slot_device::internal_header_logging(UINT8 *ROM, UINT32 len)
|
||||
static const int ramsize[8] = { 0, 2, 8, 32, 128, 64, 0, 0 };
|
||||
|
||||
char soft[17];
|
||||
UINT32 tmp = 0;
|
||||
UINT32 tmp;
|
||||
int csum = 0, i = 0;
|
||||
int rom_banks;
|
||||
|
||||
|
@ -404,7 +404,7 @@ void gba_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "gba_rom";
|
||||
const char *slot_string;
|
||||
UINT32 len = core_fsize(m_file);
|
||||
dynamic_buffer rom(len);
|
||||
int type;
|
||||
|
@ -76,7 +76,6 @@ public:
|
||||
int get_type() { return m_type; }
|
||||
int get_cart_type(UINT8 *ROM, UINT32 len);
|
||||
|
||||
void setup_ram(UINT8 banks);
|
||||
void internal_header_logging(UINT8 *ROM, UINT32 len);
|
||||
|
||||
void save_nvram() { if (m_cart && m_cart->get_nvram_size()) m_cart->save_nvram(); }
|
||||
|
@ -47,8 +47,6 @@ public:
|
||||
DECLARE_READ8_MEMBER( riot1_pb_r );
|
||||
DECLARE_WRITE8_MEMBER( riot1_pb_w );
|
||||
DECLARE_WRITE8_MEMBER( via_pb_w );
|
||||
DECLARE_WRITE_LINE_MEMBER( mode_sel_w );
|
||||
DECLARE_WRITE_LINE_MEMBER( rw_sel_w );
|
||||
|
||||
DECLARE_FLOPPY_FORMATS( floppy_formats );
|
||||
|
||||
|
@ -47,8 +47,6 @@ public:
|
||||
DECLARE_READ8_MEMBER( riot1_pb_r );
|
||||
DECLARE_WRITE8_MEMBER( riot1_pb_w );
|
||||
DECLARE_WRITE8_MEMBER( via_pb_w );
|
||||
DECLARE_READ8_MEMBER( pi_r );
|
||||
DECLARE_WRITE8_MEMBER( pi_w );
|
||||
|
||||
DECLARE_FLOPPY_FORMATS( floppy_formats );
|
||||
|
||||
|
@ -52,7 +52,6 @@ public:
|
||||
DECLARE_WRITE8_MEMBER( riot1_pa_w );
|
||||
DECLARE_READ8_MEMBER( riot1_pb_r );
|
||||
DECLARE_WRITE8_MEMBER( riot1_pb_w );
|
||||
DECLARE_READ8_MEMBER( via_pb_r );
|
||||
DECLARE_WRITE8_MEMBER( via_pb_w );
|
||||
DECLARE_WRITE_LINE_MEMBER( ack_w );
|
||||
DECLARE_WRITE_LINE_MEMBER( enable_w );
|
||||
|
@ -76,8 +76,6 @@ public:
|
||||
// construction/destruction
|
||||
imi7000_bus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
|
||||
void add_device(imi7000_slot_device *slot, device_t *target);
|
||||
|
||||
protected:
|
||||
// device-level overrides
|
||||
virtual void device_start() override;
|
||||
|
@ -409,8 +409,8 @@ bool intv_cart_slot_device::call_load()
|
||||
if (m_type == INTV_WSMLB)
|
||||
extra_bank = true;
|
||||
|
||||
UINT32 size = 0;
|
||||
UINT16 address = 0;
|
||||
UINT32 size;
|
||||
UINT16 address;
|
||||
UINT8 *ROM, *region;
|
||||
|
||||
m_cart->rom_alloc(extra_bank ? 0x22000 : 0x20000, tag());
|
||||
@ -463,7 +463,7 @@ void intv_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "intv_rom";
|
||||
const char *slot_string;
|
||||
UINT32 len = core_fsize(m_file);
|
||||
dynamic_buffer rom(len);
|
||||
int type = INTV_STD;
|
||||
|
@ -167,7 +167,7 @@ bool iq151cart_slot_device::call_load()
|
||||
{
|
||||
if (m_cart)
|
||||
{
|
||||
offs_t read_length = 0;
|
||||
offs_t read_length;
|
||||
UINT8 *cart_base = m_cart->get_cart_base();
|
||||
|
||||
if (cart_base != nullptr)
|
||||
|
@ -212,8 +212,6 @@ private:
|
||||
|
||||
void log_command();
|
||||
void log_response();
|
||||
void log_tx_data();
|
||||
void log_rx_data();
|
||||
|
||||
void do_receive_command();
|
||||
void set_command_pending(int onoff);
|
||||
|
@ -985,7 +985,7 @@ WRITE8_MEMBER( isa8_aga_pc200_device::pc200_cga_w )
|
||||
|
||||
READ8_MEMBER ( isa8_aga_pc200_device::pc200_cga_r )
|
||||
{
|
||||
UINT8 result = 0xff;
|
||||
UINT8 result;
|
||||
|
||||
switch(offset) {
|
||||
case 8:
|
||||
|
@ -854,7 +854,7 @@ CRTC_EGA_ROW_UPDATE( isa8_ega_device::pc_ega_text )
|
||||
UINT16 offset = ma + i;
|
||||
UINT8 chr = m_plane[0][ offset ];
|
||||
UINT8 attr = m_plane[1][ offset ];
|
||||
UINT8 data = 0;
|
||||
UINT8 data;
|
||||
UINT16 fg = m_attribute.data[ attr & 0x07 ];
|
||||
UINT16 bg = m_attribute.data[ ( attr >> 4 ) & 0x07 ];
|
||||
|
||||
@ -1329,7 +1329,7 @@ WRITE8_MEMBER(isa8_ega_device::pc_ega8_3c0_w )
|
||||
0x0F, 0x0F, 0x0F, 0x1F, 0x07, 0x3F, 0x0F, 0x0F,
|
||||
0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
};
|
||||
int index = 0;
|
||||
int index;
|
||||
|
||||
if ( VERBOSE_EGA )
|
||||
{
|
||||
|
@ -479,7 +479,7 @@ WRITE8_MEMBER(gf1_device::global_reg_select_w)
|
||||
|
||||
READ8_MEMBER(gf1_device::global_reg_data_r)
|
||||
{
|
||||
UINT16 ret = 0x00;
|
||||
UINT16 ret;
|
||||
|
||||
switch(m_current_reg)
|
||||
{
|
||||
@ -1430,7 +1430,7 @@ READ8_MEMBER(isa16_gus_device::joy_r)
|
||||
{
|
||||
if(offset == 1)
|
||||
{
|
||||
UINT8 data = 0;
|
||||
UINT8 data;
|
||||
int delta;
|
||||
attotime new_time = machine().time();
|
||||
|
||||
|
@ -430,7 +430,7 @@ void xt_hdc_device::dack_ws(int data)
|
||||
|
||||
void xt_hdc_device::execute_read()
|
||||
{
|
||||
hard_disk_file *disk = nullptr;
|
||||
hard_disk_file *disk;
|
||||
int size = sector_cnt[drv] * 512;
|
||||
int read_ = 0;
|
||||
|
||||
@ -460,7 +460,7 @@ void xt_hdc_device::execute_read()
|
||||
|
||||
void xt_hdc_device::execute_write()
|
||||
{
|
||||
hard_disk_file *disk = nullptr;
|
||||
hard_disk_file *disk;
|
||||
int size = sector_cnt[drv] * 512;
|
||||
int write_ = 512;
|
||||
|
||||
|
@ -313,7 +313,7 @@ MACHINE_CONFIG_END
|
||||
|
||||
READ8_MEMBER( isa8_ibm_mfc_device::ibm_mfc_r )
|
||||
{
|
||||
UINT8 val = 0xff;
|
||||
UINT8 val;
|
||||
|
||||
switch (offset)
|
||||
{
|
||||
|
@ -273,7 +273,7 @@ const rom_entry *omti8621_apollo_device::device_rom_region() const
|
||||
{
|
||||
// OMTI 8621 boards for Apollo workstations never use a BIOS ROM
|
||||
// They don't even have a socket for the BIOS ROM
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
ioport_constructor omti8621_device::device_input_ports() const
|
||||
@ -1239,7 +1239,7 @@ UINT32 omti8621_apollo_device::get_sector(INT32 diskaddr, UINT8 *data_buffer, UI
|
||||
{
|
||||
omti_disk_image_device *disk = our_disks[lun];
|
||||
|
||||
if (disk == NULL || disk->m_image == NULL || !disk->m_image->exists())
|
||||
if (disk == nullptr || disk->m_image == nullptr || !disk->m_image->exists())
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -1085,7 +1085,7 @@ void sc499_device::eop_w(int state)
|
||||
|
||||
UINT8 sc499_device::dack_r(int line)
|
||||
{
|
||||
UINT8 data = 0xff;
|
||||
UINT8 data;
|
||||
|
||||
// set_dma_drq(CLEAR_LINE);
|
||||
|
||||
|
@ -63,8 +63,6 @@ public:
|
||||
// construction/destruction
|
||||
sc499_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
|
||||
int sc499_receive(const UINT8 data[], int length);
|
||||
|
||||
required_ioport m_iobase;
|
||||
required_ioport m_irqdrq;
|
||||
|
||||
|
@ -333,7 +333,7 @@ bool kccart_slot_device::call_load()
|
||||
{
|
||||
if (m_cart)
|
||||
{
|
||||
offs_t read_length = 0;
|
||||
offs_t read_length;
|
||||
UINT8 *cart_base = m_cart->get_cart_base();
|
||||
|
||||
if (cart_base != nullptr)
|
||||
|
@ -55,7 +55,7 @@ void i82439tx_device::i82439tx_configure_memory(UINT8 val, offs_t begin, offs_t
|
||||
|
||||
UINT32 i82439tx_device::pci_read(pci_bus_device *pcibus, int function, int offset, UINT32 mem_mask)
|
||||
{
|
||||
UINT32 result = 0;
|
||||
UINT32 result;
|
||||
|
||||
if (function != 0)
|
||||
return 0;
|
||||
|
@ -118,7 +118,6 @@ public:
|
||||
void set_macpds_device();
|
||||
|
||||
// helper functions for card devices
|
||||
void install_declaration_rom(device_t *dev, const char *romregion, bool mirror_all_mb = false, bool reverse_rom = false);
|
||||
void install_bank(offs_t start, offs_t end, offs_t mask, offs_t mirror, const char *tag, UINT8 *data);
|
||||
void install_rom(device_t *dev, const char *romregion, UINT32 addr);
|
||||
|
||||
|
@ -904,7 +904,7 @@ void base_md_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "rom";
|
||||
const char *slot_string;
|
||||
UINT32 len = core_fsize(m_file), offset = 0;
|
||||
dynamic_buffer rom(len);
|
||||
int type;
|
||||
|
@ -597,7 +597,7 @@ READ16_MEMBER(md_rom_chinf3_device::read)
|
||||
and the writes made at the start of the game.. */
|
||||
if (offset >= 0x400000/2 && offset < 0x500000/2)
|
||||
{
|
||||
UINT32 retdat = 0;
|
||||
UINT32 retdat;
|
||||
/*
|
||||
04dc10 chifi3, prot_r? 2800
|
||||
04cefa chifi3, prot_r? 65262
|
||||
|
@ -1033,7 +1033,7 @@ void ngbootleg_prot_device::matrimbl_decrypt(UINT8* sprrom, UINT32 sprrom_size,
|
||||
/* decrypt Z80 */
|
||||
UINT8 *rom = audiorom+0x10000;
|
||||
dynamic_buffer buf( 0x20000 );
|
||||
int i, j=0;
|
||||
int i, j;
|
||||
memcpy( &buf[0], rom, 0x20000 );
|
||||
for( i=0x00000; i<0x20000; i++ )
|
||||
{
|
||||
|
@ -105,7 +105,7 @@ void nes_action53_device::pcb_reset()
|
||||
|
||||
void nes_action53_device::update_prg()
|
||||
{
|
||||
UINT8 prg_lo = 0, prg_hi = 0, helper = 0;
|
||||
UINT8 prg_lo, prg_hi, helper;
|
||||
UINT8 out = (m_reg[3] & 0x3f) << 1; // Outer PRG reg
|
||||
UINT8 size = (m_reg[2] & 0x30) >> 4; // Game size
|
||||
UINT8 mask = (1 << (size + 1)) - 1; // Bits to be taken from PRG reg
|
||||
|
@ -97,7 +97,7 @@ bool nes_aladdin_slot_device::call_load()
|
||||
if (m_cart)
|
||||
{
|
||||
UINT8 *ROM = m_cart->get_cart_base();
|
||||
UINT32 size = 0;
|
||||
UINT32 size;
|
||||
|
||||
if (!ROM)
|
||||
return IMAGE_INIT_FAIL;
|
||||
|
@ -978,7 +978,7 @@ WRITE8_MEMBER(nes_smb2j_device::write_ex)
|
||||
|
||||
if (offset == 2)
|
||||
{
|
||||
int temp = 0;
|
||||
int temp;
|
||||
|
||||
// According to hardware tests
|
||||
if (data & 1)
|
||||
|
@ -289,7 +289,7 @@ WRITE8_MEMBER(nes_disksys_device::write_ex)
|
||||
READ8_MEMBER(nes_disksys_device::read_ex)
|
||||
{
|
||||
LOG_MMC(("Famicom Disk System read_ex, offset: %04x\n", offset));
|
||||
UINT8 ret = 0x00;
|
||||
UINT8 ret;
|
||||
|
||||
if (offset >= 0x20 && offset < 0x60)
|
||||
{
|
||||
|
@ -32,7 +32,6 @@ public:
|
||||
|
||||
protected:
|
||||
void set_mirror(int page, int src);
|
||||
void update_render_mode();
|
||||
void update_prg();
|
||||
|
||||
inline UINT8 base_chr_r(int bank, UINT32 offset);
|
||||
|
@ -103,7 +103,7 @@ UINT8 nes_vaus_device::read_bit34()
|
||||
|
||||
UINT8 nes_vausfc_device::read_exp(offs_t offset)
|
||||
{
|
||||
UINT8 ret = 0;
|
||||
UINT8 ret;
|
||||
if (offset == 0) //$4016
|
||||
ret = m_button->read() << 1;
|
||||
else //$4017
|
||||
|
@ -271,7 +271,7 @@ READ32_MEMBER( nubus_image_device::image_super_r )
|
||||
|
||||
WRITE32_MEMBER( nubus_image_device::file_cmd_w )
|
||||
{
|
||||
const osd_directory_entry *dp = nullptr;
|
||||
const osd_directory_entry *dp;
|
||||
char fullpath[1024];
|
||||
UINT64 filesize;
|
||||
|
||||
|
@ -213,7 +213,7 @@ void o2_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "o2_rom";
|
||||
const char *slot_string;
|
||||
UINT32 size = core_fsize(m_file);
|
||||
int type = O2_STD;
|
||||
|
||||
|
@ -226,7 +226,7 @@ bool pce_cart_slot_device::call_load()
|
||||
{
|
||||
if (m_cart)
|
||||
{
|
||||
UINT32 offset = 0;
|
||||
UINT32 offset;
|
||||
UINT32 len = (software_entry() == nullptr) ? length() : get_software_region_length("rom");
|
||||
UINT8 *ROM;
|
||||
|
||||
@ -343,7 +343,7 @@ void pce_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "rom";
|
||||
const char *slot_string;
|
||||
UINT32 len = core_fsize(m_file);
|
||||
dynamic_buffer rom(len);
|
||||
int type;
|
||||
|
@ -73,7 +73,6 @@ public:
|
||||
int get_type() { return m_type; }
|
||||
int get_cart_type(UINT8 *ROM, UINT32 len);
|
||||
|
||||
void setup_ram(UINT8 banks);
|
||||
void internal_header_logging(UINT8 *ROM, UINT32 len);
|
||||
|
||||
void set_intf(const char * interface) { m_interface = interface; }
|
||||
|
@ -28,7 +28,7 @@ const device_type PET_64K = &device_creator<pet_64k_expansion_device>;
|
||||
|
||||
inline UINT8 pet_64k_expansion_device::read_ram(offs_t offset)
|
||||
{
|
||||
UINT8 data = 0;
|
||||
UINT8 data;
|
||||
|
||||
if (offset < 0xc000)
|
||||
{
|
||||
|
@ -28,8 +28,7 @@ class cbm8000_hsg_t : public device_t,
|
||||
public:
|
||||
// construction/destruction
|
||||
cbm8000_hsg_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
|
||||
cbm8000_hsg_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
|
||||
|
||||
// optional information overrides
|
||||
virtual const rom_entry *device_rom_region() const override;
|
||||
|
||||
|
@ -45,13 +45,9 @@ public:
|
||||
DECLARE_WRITE8_MEMBER( tcbm_data_w );
|
||||
DECLARE_READ8_MEMBER( tpi0_r );
|
||||
DECLARE_WRITE8_MEMBER( tpi0_w );
|
||||
DECLARE_READ8_MEMBER( yb_r );
|
||||
DECLARE_WRITE8_MEMBER( yb_w );
|
||||
DECLARE_READ8_MEMBER( tpi0_pc_r );
|
||||
DECLARE_WRITE8_MEMBER( tpi0_pc_w );
|
||||
|
||||
DECLARE_READ8_MEMBER( tpi1_pa_r );
|
||||
DECLARE_WRITE8_MEMBER( tpi1_pa_w );
|
||||
DECLARE_READ8_MEMBER( tpi1_pb_r );
|
||||
DECLARE_READ8_MEMBER( tpi1_pc_r );
|
||||
DECLARE_WRITE8_MEMBER( tpi1_pc_w );
|
||||
|
@ -28,8 +28,7 @@ class cst_q_plus4_t : public device_t,
|
||||
public:
|
||||
// construction/destruction
|
||||
cst_q_plus4_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
cst_q_plus4_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int ram_size);
|
||||
|
||||
|
||||
// optional information overrides
|
||||
virtual const rom_entry *device_rom_region() const override;
|
||||
virtual machine_config_constructor device_mconfig_additions() const override;
|
||||
|
@ -27,8 +27,7 @@ class cst_ql_disc_interface_t : public device_t,
|
||||
public:
|
||||
// construction/destruction
|
||||
cst_ql_disc_interface_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
cst_ql_disc_interface_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int ram_size);
|
||||
|
||||
|
||||
// optional information overrides
|
||||
virtual const rom_entry *device_rom_region() const override;
|
||||
|
||||
|
@ -27,8 +27,7 @@ class cumana_floppy_disk_interface_t : public device_t,
|
||||
public:
|
||||
// construction/destruction
|
||||
cumana_floppy_disk_interface_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
cumana_floppy_disk_interface_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int ram_size);
|
||||
|
||||
|
||||
// optional information overrides
|
||||
virtual const rom_entry *device_rom_region() const override;
|
||||
|
||||
|
@ -27,8 +27,7 @@ class kempston_disk_interface_t : public device_t,
|
||||
public:
|
||||
// construction/destruction
|
||||
kempston_disk_interface_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
kempston_disk_interface_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int ram_size);
|
||||
|
||||
|
||||
// optional information overrides
|
||||
virtual const rom_entry *device_rom_region() const override;
|
||||
|
||||
|
@ -27,8 +27,7 @@ class miracle_gold_card_t : public device_t,
|
||||
public:
|
||||
// construction/destruction
|
||||
miracle_gold_card_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
miracle_gold_card_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int ram_size);
|
||||
|
||||
|
||||
// optional information overrides
|
||||
virtual const rom_entry *device_rom_region() const override;
|
||||
|
||||
|
@ -27,8 +27,7 @@ class miracle_hard_disk_t : public device_t,
|
||||
public:
|
||||
// construction/destruction
|
||||
miracle_hard_disk_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
miracle_hard_disk_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int ram_size);
|
||||
|
||||
|
||||
// optional information overrides
|
||||
virtual const rom_entry *device_rom_region() const override;
|
||||
|
||||
|
@ -27,8 +27,7 @@ class micro_peripherals_floppy_disk_interface_t : public device_t,
|
||||
public:
|
||||
// construction/destruction
|
||||
micro_peripherals_floppy_disk_interface_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
micro_peripherals_floppy_disk_interface_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int ram_size);
|
||||
|
||||
|
||||
// optional information overrides
|
||||
virtual const rom_entry *device_rom_region() const override;
|
||||
|
||||
|
@ -27,8 +27,7 @@ class opd_basic_master_t : public device_t,
|
||||
public:
|
||||
// construction/destruction
|
||||
opd_basic_master_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
opd_basic_master_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int ram_size);
|
||||
|
||||
|
||||
// optional information overrides
|
||||
virtual const rom_entry *device_rom_region() const override;
|
||||
|
||||
|
@ -27,8 +27,7 @@ class pcml_q_disk_interface_t : public device_t,
|
||||
public:
|
||||
// construction/destruction
|
||||
pcml_q_disk_interface_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
pcml_q_disk_interface_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int ram_size);
|
||||
|
||||
|
||||
// optional information overrides
|
||||
virtual const rom_entry *device_rom_region() const override;
|
||||
|
||||
|
@ -28,8 +28,7 @@ class qubide_t : public device_t,
|
||||
public:
|
||||
// construction/destruction
|
||||
qubide_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
qubide_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int ram_size);
|
||||
|
||||
|
||||
// optional information overrides
|
||||
virtual const rom_entry *device_rom_region() const override;
|
||||
virtual machine_config_constructor device_mconfig_additions() const override;
|
||||
|
@ -79,7 +79,7 @@ bool ql_rom_cartridge_slot_t::call_load()
|
||||
{
|
||||
if (m_card)
|
||||
{
|
||||
size_t size = 0;
|
||||
size_t size;
|
||||
|
||||
if (software_entry() == nullptr)
|
||||
{
|
||||
|
@ -18,7 +18,6 @@ public:
|
||||
serial_keyboard_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
|
||||
|
||||
virtual DECLARE_WRITE_LINE_MEMBER( input_txd ) override { device_serial_interface::rx_w(state); }
|
||||
DECLARE_READ_LINE_MEMBER(tx_r);
|
||||
|
||||
virtual ioport_constructor device_input_ports() const override;
|
||||
|
||||
|
@ -14,9 +14,6 @@ public:
|
||||
virtual machine_config_constructor device_mconfig_additions() const override;
|
||||
|
||||
virtual WRITE_LINE_MEMBER( input_txd ) override { device_serial_interface::rx_w(state); }
|
||||
|
||||
DECLARE_WRITE_LINE_MEMBER(update_serial);
|
||||
|
||||
protected:
|
||||
virtual ioport_constructor device_input_ports() const override;
|
||||
virtual void device_start() override;
|
||||
|
@ -263,7 +263,7 @@ void scv_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "rom8k";
|
||||
const char *slot_string;
|
||||
UINT32 len = core_fsize(m_file);
|
||||
dynamic_buffer rom(len);
|
||||
int type;
|
||||
|
@ -607,7 +607,7 @@ void sega8_cart_slot_device::get_default_card_software(std::string &result)
|
||||
{
|
||||
if (open_image_file(mconfig().options()))
|
||||
{
|
||||
const char *slot_string = "rom";
|
||||
const char *slot_string;
|
||||
UINT32 len = core_fsize(m_file), offset = 0;
|
||||
dynamic_buffer rom(len);
|
||||
int type;
|
||||
@ -725,7 +725,7 @@ void sega8_cart_slot_device::internal_header_logging(UINT8 *ROM, UINT32 len, UIN
|
||||
char reserved[10];
|
||||
UINT8 version, csum_size, region, serial[3];
|
||||
UINT16 checksum, csum = 0;
|
||||
UINT32 csum_end = 0;
|
||||
UINT32 csum_end;
|
||||
|
||||
// LOG FILE DETAILS
|
||||
logerror("FILE DETAILS\n" );
|
||||
|
@ -71,9 +71,6 @@ public:
|
||||
UINT32 get_rom_size() { return m_rom_size; }
|
||||
UINT32 get_ram_size() { return m_ram.size(); }
|
||||
|
||||
void rom_map_setup(UINT32 size);
|
||||
void ram_map_setup(UINT8 banks);
|
||||
|
||||
void save_ram() { device().save_item(NAME(m_ram)); }
|
||||
|
||||
//private:
|
||||
|
@ -81,7 +81,7 @@ void sms_rapid_fire_device::device_start()
|
||||
|
||||
UINT8 sms_rapid_fire_device::peripheral_r()
|
||||
{
|
||||
UINT8 data = 0xff;
|
||||
UINT8 data;
|
||||
|
||||
int num_intervals = (machine().time() - m_start_time).as_double() / m_interval.as_double();
|
||||
m_read_state = num_intervals & 1;
|
||||
|
@ -377,7 +377,7 @@ WRITE8_MEMBER( sns_rom_tekken2_device::chip_write )
|
||||
// Banks $c0-$ff return open bus.
|
||||
READ8_MEMBER( sns_rom_soulblad_device::chip_read )
|
||||
{
|
||||
UINT8 value = 0;
|
||||
UINT8 value;
|
||||
offset &= 3;
|
||||
switch (offset)
|
||||
{
|
||||
|
@ -819,8 +819,8 @@ void sns_sa1_device::write_iram(UINT32 offset, UINT8 data)
|
||||
|
||||
UINT8 sns_sa1_device::read_bwram(UINT32 offset)
|
||||
{
|
||||
int shift = 0;
|
||||
UINT8 mask = 0xff;
|
||||
int shift;
|
||||
UINT8 mask;
|
||||
|
||||
if (m_nvram.empty())
|
||||
return 0xff; // this should probably never happen, or are there SA-1 games with no BWRAM?
|
||||
@ -852,7 +852,7 @@ UINT8 sns_sa1_device::read_bwram(UINT32 offset)
|
||||
|
||||
void sns_sa1_device::write_bwram(UINT32 offset, UINT8 data)
|
||||
{
|
||||
UINT8 mask = 0xff;
|
||||
UINT8 mask;
|
||||
|
||||
if (m_nvram.empty())
|
||||
return; // this should probably never happen, or are there SA-1 games with no BWRAM?
|
||||
@ -894,7 +894,7 @@ void sns_sa1_device::write_bwram(UINT32 offset, UINT8 data)
|
||||
|
||||
READ8_MEMBER(sns_sa1_device::read_l)
|
||||
{
|
||||
int bank = 0;
|
||||
int bank;
|
||||
|
||||
if (offset == 0xffea && BIT(m_scpu_ctrl, 4)) return (m_nmi_vector >> 0) & 0xff;
|
||||
if (offset == 0xffeb && BIT(m_scpu_ctrl, 4)) return (m_nmi_vector >> 8) & 0xff;
|
||||
@ -929,7 +929,7 @@ READ8_MEMBER(sns_sa1_device::read_l)
|
||||
|
||||
READ8_MEMBER(sns_sa1_device::read_h)
|
||||
{
|
||||
int bank = 0;
|
||||
int bank;
|
||||
|
||||
// ROM is mapped to [80-bf][8000-ffff] & [c0-ff][0000-ffff]
|
||||
if (offset < 0x200000)
|
||||
|
@ -256,7 +256,7 @@ UINT8 SDD1_CM::CM_getBit(UINT8 *ROM, UINT32 *mmc)
|
||||
{
|
||||
UINT8 currContext;
|
||||
UINT16 *context_bits;
|
||||
UINT8 bit = 0;
|
||||
UINT8 bit;
|
||||
|
||||
switch (m_bitplanesInfo)
|
||||
{
|
||||
@ -319,7 +319,7 @@ void SDD1_OL::OL_prepareDecomp(UINT8 *ROM, UINT32 *mmc, UINT32 first_byte, UINT1
|
||||
void SDD1_OL::OL_launch(UINT8 *ROM, UINT32 *mmc)
|
||||
{
|
||||
UINT8 i;
|
||||
UINT8 register1 = 0, register2 = 0;
|
||||
UINT8 register1, register2 = 0;
|
||||
|
||||
switch (m_bitplanesInfo)
|
||||
{
|
||||
|
@ -797,7 +797,7 @@ void base_sns_cart_slot_device::setup_addon_from_fullpath()
|
||||
if (!m_cart->get_addon_bios_size())
|
||||
{
|
||||
std::string region = std::string(m_cart->device().tag()).append(":addon");
|
||||
UINT8 *ROM = nullptr;
|
||||
UINT8 *ROM;
|
||||
|
||||
switch (m_addon)
|
||||
{
|
||||
@ -1005,8 +1005,8 @@ void base_sns_cart_slot_device::get_default_card_software(std::string &result)
|
||||
|
||||
if (fullpath)
|
||||
{
|
||||
const char *slot_string = "lorom";
|
||||
UINT32 offset = 0;
|
||||
const char *slot_string;
|
||||
UINT32 offset;
|
||||
UINT32 len = core_fsize(m_file);
|
||||
dynamic_buffer rom(len);
|
||||
int type = 0, addon = 0;
|
||||
|
@ -1233,7 +1233,7 @@ READ8_MEMBER(sns_rom_spc7110_device::chip_read)
|
||||
case 0x4840: return m_r4840;
|
||||
case 0x4841:
|
||||
{
|
||||
UINT8 data = 0;
|
||||
UINT8 data;
|
||||
if (m_rtc_state == RTCS_Inactive || m_rtc_state == RTCS_ModeSelect)
|
||||
return 0x00;
|
||||
|
||||
|
@ -338,7 +338,7 @@ WRITE8_MEMBER(snug_bwg_device::write)
|
||||
*/
|
||||
READ8Z_MEMBER(snug_bwg_device::crureadz)
|
||||
{
|
||||
UINT8 reply = 0;
|
||||
UINT8 reply;
|
||||
|
||||
if ((offset & 0xff00)==m_cru_base)
|
||||
{
|
||||
|
@ -28,9 +28,6 @@ public:
|
||||
DECLARE_WRITE8_MEMBER(write) override;
|
||||
DECLARE_SETADDRESS_DBIN_MEMBER(setaddress_dbin) override;
|
||||
|
||||
DECLARE_WRITE_LINE_MEMBER( intrq_w );
|
||||
DECLARE_WRITE_LINE_MEMBER( drq_w );
|
||||
|
||||
DECLARE_READ8Z_MEMBER(crureadz) override;
|
||||
DECLARE_WRITE8_MEMBER(cruwrite) override;
|
||||
|
||||
|
@ -182,7 +182,6 @@ private:
|
||||
void set_bits(UINT8& byte, int mask, bool set);
|
||||
|
||||
// Joined ready line towards the controller
|
||||
void set_ready(int dev, bool ready);
|
||||
int m_readyflags;
|
||||
};
|
||||
#endif
|
||||
|
@ -48,7 +48,7 @@ bool geneve_memex_device::access_enabled(offs_t offset)
|
||||
// Some traditional cards will not decode the AMx lines, so
|
||||
// we may have to lock out those areas
|
||||
int page = (offset >> 13)&0xff;
|
||||
int index = 0;
|
||||
int index;
|
||||
|
||||
// SW2: "off" locks
|
||||
// 10xxx010
|
||||
|
@ -52,7 +52,7 @@ m_ram(nullptr), m_dsrrom(nullptr), m_bank(0), m_size(0)
|
||||
|
||||
int myarc_memory_expansion_device::get_base(int offset)
|
||||
{
|
||||
int base = 0;
|
||||
int base;
|
||||
if (m_size == SIZE_128)
|
||||
{
|
||||
base = ((m_bank & 0x03) << 15);
|
||||
|
@ -37,7 +37,7 @@ sams_memory_expansion_device::sams_memory_expansion_device(const machine_config
|
||||
*/
|
||||
READ8Z_MEMBER(sams_memory_expansion_device::readz)
|
||||
{
|
||||
int base = 0;
|
||||
int base;
|
||||
|
||||
if (m_access_mapper && ((offset & 0xe000)==0x4000))
|
||||
{
|
||||
@ -61,7 +61,7 @@ READ8Z_MEMBER(sams_memory_expansion_device::readz)
|
||||
|
||||
WRITE8_MEMBER(sams_memory_expansion_device::write)
|
||||
{
|
||||
int base = 0;
|
||||
int base;
|
||||
|
||||
if (m_access_mapper && ((offset & 0xe000)==0x4000))
|
||||
{
|
||||
|
@ -32,10 +32,6 @@ public:
|
||||
|
||||
DECLARE_WRITE_LINE_MEMBER( speech_ready );
|
||||
|
||||
DECLARE_READ8_MEMBER( spchrom_read );
|
||||
DECLARE_WRITE8_MEMBER( spchrom_load_address );
|
||||
DECLARE_WRITE8_MEMBER( spchrom_read_and_branch );
|
||||
|
||||
protected:
|
||||
virtual void device_start() override;
|
||||
virtual void device_reset(void) override;
|
||||
|
@ -27,9 +27,6 @@ public:
|
||||
DECLARE_WRITE8_MEMBER(write) override;
|
||||
DECLARE_SETADDRESS_DBIN_MEMBER(setaddress_dbin) override;
|
||||
|
||||
DECLARE_WRITE_LINE_MEMBER( intrq_w );
|
||||
DECLARE_WRITE_LINE_MEMBER( drq_w );
|
||||
|
||||
DECLARE_READ8Z_MEMBER(crureadz) override;
|
||||
DECLARE_WRITE8_MEMBER(cruwrite) override;
|
||||
|
||||
|
@ -176,7 +176,7 @@ int ti_rs232_attached_device::get_index_from_tagname()
|
||||
*/
|
||||
bool ti_rs232_attached_device::call_load()
|
||||
{
|
||||
tms9902_device* tms9902 = nullptr;
|
||||
tms9902_device* tms9902;
|
||||
// ti_rs232_pio_device* card = static_cast<ti_rs232_pio_device*>(owner());
|
||||
|
||||
int devnumber = get_index_from_tagname();
|
||||
@ -206,7 +206,7 @@ bool ti_rs232_attached_device::call_load()
|
||||
|
||||
void ti_rs232_attached_device::call_unload()
|
||||
{
|
||||
tms9902_device* tms9902 = nullptr;
|
||||
tms9902_device* tms9902;
|
||||
|
||||
int devnumber = get_index_from_tagname();
|
||||
if (devnumber==0)
|
||||
|
@ -45,7 +45,6 @@ public:
|
||||
DECLARE_WRITE8_MEMBER( xmit1_callback );
|
||||
DECLARE_WRITE8_MEMBER( ctrl0_callback );
|
||||
DECLARE_WRITE8_MEMBER( ctrl1_callback );
|
||||
DECLARE_WRITE_LINE_MEMBER( senila );
|
||||
|
||||
protected:
|
||||
virtual void device_start(void) override;
|
||||
|
@ -295,7 +295,7 @@ void mainboard8_device::PTGE_set(bool state)
|
||||
READ8_MEMBER( mainboard8_device::readm )
|
||||
{
|
||||
UINT8 value = 0;
|
||||
bool found = false;
|
||||
bool found;
|
||||
if (TRACE_MEM) logerror("%s: read from %04x\n", tag(), offset);
|
||||
found = access_logical_r(space, offset, &value, mem_mask);
|
||||
m_waitcount = 2;
|
||||
@ -323,7 +323,7 @@ READ8_MEMBER( mainboard8_device::readm )
|
||||
|
||||
WRITE8_MEMBER( mainboard8_device::writem )
|
||||
{
|
||||
bool found = false;
|
||||
bool found;
|
||||
|
||||
// Look for components responding to the logical address
|
||||
found = access_logical_w(space, offset, data, mem_mask);
|
||||
@ -485,7 +485,7 @@ bool mainboard8_device::access_logical_r(address_space& space, offs_t offset, UI
|
||||
{
|
||||
bool found = false;
|
||||
logically_addressed_device *ldev = m_logcomp.first();
|
||||
bus8z_device *bdev = nullptr;
|
||||
bus8z_device *bdev;
|
||||
|
||||
if (TRACE_MEM) logerror("%s: offset=%04x; CRUS=%d, PTGEN=%d\n", tag(), offset, m_CRUS? 1:0, m_PTGE? 0:1);
|
||||
while (ldev != nullptr)
|
||||
@ -531,7 +531,7 @@ bool mainboard8_device::access_logical_w(address_space& space, offs_t offset, UI
|
||||
{
|
||||
bool found = false;
|
||||
logically_addressed_device *ldev = m_logcomp.first();
|
||||
bus8z_device *bdev = nullptr;
|
||||
bus8z_device *bdev;
|
||||
|
||||
while (ldev != nullptr)
|
||||
{
|
||||
@ -573,7 +573,7 @@ bool mainboard8_device::access_logical_w(address_space& space, offs_t offset, UI
|
||||
void mainboard8_device::access_physical_r( address_space& space, offs_t pas_address, UINT8 *value, UINT8 mem_mask )
|
||||
{
|
||||
physically_addressed_device *pdev = m_physcomp.first();
|
||||
bus8z_device *bdev = nullptr;
|
||||
bus8z_device *bdev;
|
||||
|
||||
while (pdev != nullptr)
|
||||
{
|
||||
@ -621,7 +621,7 @@ void mainboard8_device::access_physical_r( address_space& space, offs_t pas_addr
|
||||
void mainboard8_device::access_physical_w( address_space& space, offs_t pas_address, UINT8 data, UINT8 mem_mask )
|
||||
{
|
||||
physically_addressed_device *pdev = m_physcomp.first();
|
||||
bus8z_device *bdev = nullptr;
|
||||
bus8z_device *bdev;
|
||||
|
||||
while (pdev != nullptr)
|
||||
{
|
||||
|
@ -157,10 +157,6 @@ public:
|
||||
|
||||
DECLARE_WRITE_LINE_MEMBER( speech8_ready );
|
||||
|
||||
DECLARE_READ8_MEMBER( spchrom_read );
|
||||
DECLARE_WRITE8_MEMBER( spchrom_load_address );
|
||||
DECLARE_WRITE8_MEMBER( spchrom_read_and_branch );
|
||||
|
||||
protected:
|
||||
virtual void device_start() override;
|
||||
virtual void device_reset(void) override;
|
||||
|
@ -429,7 +429,7 @@ void ti99_datamux_device::device_reset(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
UINT32 set = 0;
|
||||
UINT32 set;
|
||||
bool active_device = true;
|
||||
if (list[i].setting!=nullptr)
|
||||
{
|
||||
|
@ -1186,7 +1186,7 @@ void geneve_mapper_device::decode(address_space& space, offs_t offset, bool read
|
||||
*/
|
||||
READ8_MEMBER( geneve_mapper_device::read_from_pfm )
|
||||
{
|
||||
UINT8 value = 0;
|
||||
UINT8 value;
|
||||
if (!m_pfm_output_enable) return 0;
|
||||
|
||||
int address = (offset & 0x01ffff) | (m_pfm_bank<<17);
|
||||
|
@ -1796,7 +1796,7 @@ WRITE8_MEMBER(ti99_mbx_cartridge::write)
|
||||
*/
|
||||
int ti99_paged379i_cartridge::get_paged379i_bank(int rompage)
|
||||
{
|
||||
int mask = 0;
|
||||
int mask;
|
||||
if (m_rom_size > 16384)
|
||||
{
|
||||
if (m_rom_size > 32768)
|
||||
|
@ -208,7 +208,6 @@ private:
|
||||
|
||||
void set_slot(int slotnumber);
|
||||
int get_active_slot(bool changebase, offs_t offset);
|
||||
void change_slot(bool inserted, int index);
|
||||
};
|
||||
|
||||
/*
|
||||
@ -370,8 +369,6 @@ public:
|
||||
~ti99_paged378_cartridge() { };
|
||||
DECLARE_READ8Z_MEMBER(readz) override;
|
||||
DECLARE_WRITE8_MEMBER(write) override;
|
||||
private:
|
||||
int get_paged378_bank(int rompage);
|
||||
};
|
||||
|
||||
/********************** Paged 377 ************************************/
|
||||
@ -382,8 +379,6 @@ public:
|
||||
~ti99_paged377_cartridge() { };
|
||||
DECLARE_READ8Z_MEMBER(readz) override;
|
||||
DECLARE_WRITE8_MEMBER(write) override;
|
||||
private:
|
||||
int get_paged377_bank(int rompage);
|
||||
};
|
||||
|
||||
/********************** Paged CRU ************************************/
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user