summaryrefslogtreecommitdiffstats
path: root/src/mess/machine/md_rom.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/md_rom.h')
-rw-r--r--src/mess/machine/md_rom.h136
1 files changed, 68 insertions, 68 deletions
diff --git a/src/mess/machine/md_rom.h b/src/mess/machine/md_rom.h
index fd7b03d0901..acc1bff2827 100644
--- a/src/mess/machine/md_rom.h
+++ b/src/mess/machine/md_rom.h
@@ -10,17 +10,17 @@
// ======================> md_std_rom_device
class md_std_rom_device : public device_t,
- public device_md_cart_interface
+ public device_md_cart_interface
{
public:
// construction/destruction
md_std_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
md_std_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_start() {};
virtual void device_config_complete() { m_shortname = "md_std_rom"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read) { if (offset < 0x400000/2) return m_rom[MD_ADDR(offset)]; else return 0xffff; };
virtual DECLARE_WRITE16_MEMBER(write) { };
@@ -33,10 +33,10 @@ class md_rom_sram_device : public md_std_rom_device
public:
// construction/destruction
md_rom_sram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_sram"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
virtual DECLARE_WRITE16_MEMBER(write);
@@ -50,10 +50,10 @@ class md_rom_fram_device : public md_std_rom_device
public:
// construction/destruction
md_rom_fram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_fram"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
virtual DECLARE_READ16_MEMBER(read_a13);
@@ -67,18 +67,18 @@ class md_rom_ssf2_device : public md_std_rom_device
public:
// construction/destruction
md_rom_ssf2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_start();
virtual void device_config_complete() { m_shortname = "md_rom_ssf2"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
virtual DECLARE_WRITE16_MEMBER(write_a13);
private:
UINT8 m_bank[16];
- int m_lastoff, m_lastdata;
+ int m_lastoff, m_lastdata;
};
// ======================> md_rom_mcpirate_device
@@ -88,15 +88,15 @@ class md_rom_mcpirate_device : public md_std_rom_device
public:
// construction/destruction
md_rom_mcpirate_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_start();
virtual void device_config_complete() { m_shortname = "md_rom_mcpirate"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
virtual DECLARE_WRITE16_MEMBER(write_a13);
-
+
private:
UINT8 m_bank;
};
@@ -109,10 +109,10 @@ class md_rom_bugslife_device : public md_std_rom_device
public:
// construction/destruction
md_rom_bugslife_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_bugslife"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read_a13);
};
@@ -124,15 +124,15 @@ class md_rom_chinf3_device : public md_std_rom_device
public:
// construction/destruction
md_rom_chinf3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_start();
virtual void device_config_complete() { m_shortname = "md_rom_chinf3"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
virtual DECLARE_WRITE16_MEMBER(write);
-
+
private:
int m_bank;
};
@@ -144,10 +144,10 @@ class md_rom_elfwor_device : public md_std_rom_device
public:
// construction/destruction
md_rom_elfwor_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_elfwor"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
};
@@ -159,10 +159,10 @@ class md_rom_yasech_device : public md_std_rom_device
public:
// construction/destruction
md_rom_yasech_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_yasech"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
};
@@ -174,10 +174,10 @@ class md_rom_kof98_device : public md_std_rom_device
public:
// construction/destruction
md_rom_kof98_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_kof98"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
};
@@ -189,10 +189,10 @@ class md_rom_kof99_device : public md_std_rom_device
public:
// construction/destruction
md_rom_kof99_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_kof99"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read_a13);
};
@@ -204,15 +204,15 @@ class md_rom_lion2_device : public md_std_rom_device
public:
// construction/destruction
md_rom_lion2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_start();
virtual void device_config_complete() { m_shortname = "md_rom_lion2"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
virtual DECLARE_WRITE16_MEMBER(write);
-
+
private:
UINT16 m_prot1_data, m_prot2_data;
};
@@ -224,17 +224,17 @@ class md_rom_lion3_device : public md_std_rom_device
public:
// construction/destruction
md_rom_lion3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_start();
virtual void device_config_complete() { m_shortname = "md_rom_lion3"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
virtual DECLARE_WRITE16_MEMBER(write);
-
+
private:
- UINT8 m_prot_data, m_prot_cmd;
+ UINT8 m_prot_data, m_prot_cmd;
UINT16 m_bank;
};
@@ -245,10 +245,10 @@ class md_rom_mjlov_device : public md_std_rom_device
public:
// construction/destruction
md_rom_mjlov_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_mjlov"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
};
@@ -260,15 +260,15 @@ class md_rom_pokestad_device : public md_std_rom_device
public:
// construction/destruction
md_rom_pokestad_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_start();
virtual void device_config_complete() { m_shortname = "md_rom_pokestad"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
virtual DECLARE_WRITE16_MEMBER(write);
-
+
private:
UINT8 m_bank;
};
@@ -280,15 +280,15 @@ class md_rom_realtec_device : public md_std_rom_device
public:
// construction/destruction
md_rom_realtec_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_start();
virtual void device_config_complete() { m_shortname = "md_rom_realtec"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
virtual DECLARE_WRITE16_MEMBER(write);
-
+
private:
UINT16 m_bank_addr, m_bank_size, m_old_bank_addr;
};
@@ -300,10 +300,10 @@ class md_rom_redcl_device : public md_std_rom_device
public:
// construction/destruction
md_rom_redcl_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_redcl"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
};
@@ -315,10 +315,10 @@ class md_rom_rx3_device : public md_std_rom_device
public:
// construction/destruction
md_rom_rx3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_rx3"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read_a13);
};
@@ -330,10 +330,10 @@ class md_rom_sbubl_device : public md_std_rom_device
public:
// construction/destruction
md_rom_sbubl_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_sbubl"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
};
@@ -345,10 +345,10 @@ class md_rom_smb_device : public md_std_rom_device
public:
// construction/destruction
md_rom_smb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_smb"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read_a13);
};
@@ -360,10 +360,10 @@ class md_rom_smb2_device : public md_std_rom_device
public:
// construction/destruction
md_rom_smb2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_smb2"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read_a13);
};
@@ -375,10 +375,10 @@ class md_rom_smouse_device : public md_std_rom_device
public:
// construction/destruction
md_rom_smouse_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_smouse"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
};
@@ -391,10 +391,10 @@ class md_rom_soulb_device : public md_std_rom_device
public:
// construction/destruction
md_rom_soulb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_config_complete() { m_shortname = "md_rom_soulb"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
};
@@ -406,17 +406,17 @@ class md_rom_squir_device : public md_std_rom_device
public:
// construction/destruction
md_rom_squir_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_start();
virtual void device_config_complete() { m_shortname = "md_rom_squir"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
virtual DECLARE_WRITE16_MEMBER(write);
-
+
private:
- UINT16 m_latch;
+ UINT16 m_latch;
};
// ======================> md_rom_topf_device
@@ -426,18 +426,18 @@ class md_rom_topf_device : public md_std_rom_device
public:
// construction/destruction
md_rom_topf_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_start();
virtual void device_config_complete() { m_shortname = "md_rom_topf"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
virtual DECLARE_WRITE16_MEMBER(write);
-
+
private:
- UINT16 m_latch;
- UINT8 m_bank[3];
+ UINT16 m_latch;
+ UINT8 m_bank[3];
};
// ======================> md_rom_radica_device
@@ -447,17 +447,17 @@ class md_rom_radica_device : public md_std_rom_device
public:
// construction/destruction
md_rom_radica_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// device-level overrides
virtual void device_start();
virtual void device_config_complete() { m_shortname = "md_rom_radica"; }
-
+
// reading and writing
virtual DECLARE_READ16_MEMBER(read);
virtual DECLARE_READ16_MEMBER(read_a13);
-
+
private:
- UINT8 m_bank;
+ UINT8 m_bank;
};